mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
discrepancy in Filling out a Template tutorial #107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghyatzo on GitHub (Mar 5, 2024).
hello,
In the amending tutorial, in the
nestedAmend.pklexamplethere is the extract
and in the description there is a clear reference to the taxonomy field in the bird example previously treated
but the
bird.taxonomyobject has no `species property in the exampleIt seems like
woodPidgeonis amendingbirdbut that doesn't seem true in the code.It may be very confusing (and it was) the first time ones reads about it.
I've refrained from doing a PR directly since I don't know which narration you'd prefer to have here.
@StefMa commented on GitHub (Mar 5, 2024):
I guess you're right here.
woodPigeonis a completely new property and has nothing to do with the previously definedbird.Otherwise it should be used like
😉 Like also the first examples describe.
So the sentences
In this example, bird.taxonomy has kingdom, clade, order and speciesis 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
@ghyatzo commented on GitHub (Mar 5, 2024):
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
woodPidgeonamend 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.