Comments (2)
It seems like woodPidgeon is amending bird but that doesn't seem true in the code.
I guess you're right here.
woodPigeon
is a completely new property and has nothing to do with the previously defined bird
.
Otherwise it should be used like
woodPigeon = (bird) {
😉 Like also the first examples describe.
So the sentences In this example, bird.taxonomy has kingdom, clade, order and species
is wrong for this example, but might be worth to move to the first example...
See also https://pkl-playground.vercel.app/?share=longer-drew-call
from pkl.
Ahah thanks for confirming I am not mad, at first it confused me quite a bit.
Thanks for the clarification.
If I may, separating the two examples using slightly different objects might seem confusing, I don't know if that was deliberate or not but while working through it, it made things clearer just having woodPidgeon
amend bird to begin with.
But it's just a minor feedback from a pkl noob so take it as it is 😁 I might be missing the point completely.
from pkl.
Related Issues (20)
- How to adopt HTTP proxy while downloading pkl packages? HOT 6
- Support for `-SNAPSHOT` versions that do not cache the package locally HOT 7
- Add Dart to supported languages HOT 1
- Templating with classes does not fail if expected HOT 5
- Support for pkldoc generation via CLI HOT 1
- Dont allow modules to be extended/amended HOT 6
- Functions are not inherited by amending modules HOT 4
- Cannot find property HOT 3
- Cannot import dynamically HOT 5
- structTags in generator-settings.pkl caused pkl-gen-go to panic HOT 2
- `project package` throws `InvalidAlgorithmParameterException` when adding `Package.apiTests` HOT 6
- Rust Language Binding HOT 9
- [Feature Request] Support / Bindings for CPS
- [feat] `module` self type allow submodule definition inline HOT 1
- How to reuse code in pkl HOT 2
- [Feature] Support badges of latest version on your package server (`pkg.pkl-lang.org`) HOT 3
- Infinite loop with same name HOT 5
- `PklProject.exclude` doesn't respect directories HOT 3
- Triple dot module uri resolution for local dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkl.