pkl
pkl copied to clipboard
Language Reference: Section on objects mixes up dodo bird example and pigeon example
This is probably a simple editing error due to some changes that took place as the documentation was being written.
Defining Objects gives an example with dodo birds:
dodo {
name = "Dodo"
taxonomy {
`class` = "Aves"
}
}
But then a subsequent paragraph mentions a different example (emphasis added by me):
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 Pigeon moves to a different street? Do we have to construct a new object from scratch?
I think the emphasized sentence needs to be rewritten to refer to the dodo bird vs the tortoise in the following section.