mirror of
https://github.com/apple/pkl.git
synced 2026-04-20 23:41:27 +02:00
Apply suggestions from code review
This commit is contained in:
@@ -685,7 +685,7 @@ dodo {
|
|||||||
As you probably guessed, the nested property `class` can be accessed with `dodo.taxonomy.class`.
|
As you probably guessed, the nested property `class` can be accessed with `dodo.taxonomy.class`.
|
||||||
|
|
||||||
Like all values, objects are _immutable_, which is just a fancy (and short!) way to say that their properties never change.
|
Like all values, objects are _immutable_, which is just a fancy (and short!) way to say that their properties never change.
|
||||||
So what happens when dodo moves to a different street? Do we have to construct a new object from scratch?
|
So what happens when Dodo moves to a different street? Do we have to construct a new object from scratch?
|
||||||
|
|
||||||
[[amending-objects]]
|
[[amending-objects]]
|
||||||
=== Amending Objects
|
=== Amending Objects
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ parrot = (bird) {
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
`parrot` and `bird` have nearly identical properties.
|
Parrot and Pigeon have nearly identical properties.
|
||||||
They only differ in their name and taxonomy, so if you have already written out `bird`, you can say that `parrot` is just like `bird` except `name` is `"Parrot"`, diet is `"Berries"` the `taxonomy.order` is `"Psittaciformes"`.
|
They only differ in their name and taxonomy, so if you have already written out `bird`, you can say that `parrot` is just like `bird` except `name` is `"Parrot"`, diet is `"Berries"` the `taxonomy.order` is `"Psittaciformes"`.
|
||||||
When you run this, Pkl expands everything fully.
|
When you run this, Pkl expands everything fully.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user