Originally created by @gtirloni on GitHub (Oct 27, 2024).
This whole section talks about pklTutorialPart3.pkl which had not been defined up to that point. Additionally, it's talking about types and classes and then shows an example of amending that has no classes (TutorialPart.pkl and pklTutorialPart3.pkl).
This now behaves exactly like our pklTutorialPart3: TutorialPart = (pklTutorialPart1) {… before. pklTutorialPart3 is now defined as the value we get by amending tutorialPart and giving it a name and a part
Ok, it behaves exactly like that so then what's the point of using a class (I know the point, I don't understand why the tutorial is going down this path).
Originally created by @gtirloni on GitHub (Oct 27, 2024).
[This](https://github.com/apple/pkl/blob/release/0.26/docs/modules/language-tutorial/pages/03_writing_a_template.adoc?plain=1#L170-L247) whole section talks about `pklTutorialPart3.pkl` which had not been defined up to that point. Additionally, it's talking about types and classes and then shows an example of amending that has no classes (`TutorialPart.pkl` and `pklTutorialPart3.pkl`).
It goes on to [say](https://github.com/apple/pkl/blob/release/0.26/docs/modules/language-tutorial/pages/03_writing_a_template.adoc?plain=1#L246-L247):
```
This now behaves exactly like our pklTutorialPart3: TutorialPart = (pklTutorialPart1) {… before. pklTutorialPart3 is now defined as the value we get by amending tutorialPart and giving it a name and a part
```
Ok, it behaves exactly like that so then what's the point of using a class (I know the point, I don't understand why the tutorial is going down this path).
Thanks for the feedback! We'll look to improve the tutorial. But, also, feel free to submit a pull request with changes that you think would be more helpful.
@bioball commented on GitHub (Nov 1, 2024):
Thanks for the feedback! We'll look to improve the tutorial. But, also, feel free to submit a pull request with changes that you think would be more helpful.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @gtirloni on GitHub (Oct 27, 2024).
This whole section talks about
pklTutorialPart3.pklwhich had not been defined up to that point. Additionally, it's talking about types and classes and then shows an example of amending that has no classes (TutorialPart.pklandpklTutorialPart3.pkl).It goes on to say:
Ok, it behaves exactly like that so then what's the point of using a class (I know the point, I don't understand why the tutorial is going down this path).
@bioball commented on GitHub (Nov 1, 2024):
Thanks for the feedback! We'll look to improve the tutorial. But, also, feel free to submit a pull request with changes that you think would be more helpful.