Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No example of record destructuring in a let assignment #56

Closed
lpil opened this issue Mar 14, 2024 · 2 comments · Fixed by #88
Closed

No example of record destructuring in a let assignment #56

lpil opened this issue Mar 14, 2024 · 2 comments · Fixed by #88

Comments

@lpil
Copy link
Member

lpil commented Mar 14, 2024

No description provided.

@xxKeefer
Copy link
Contributor

xxKeefer commented Apr 23, 2024

Hey there 👋🏻, would love to help out with this one!

Just some clarifying questions, should there be an extra step in the tour like in between Records and Record Accessors under Data Types or should the example for Records be updated?

Looking at the current Record page and it's example, to be able to destructure a SchoolPerson i think it would require the use of a case or let assert to destructure. I feel as if using those concepts would make the example of record destructuring less clear, especially in the case of let assert.

If i can get a point in the right direction here i'll get started ASAP. <3

@lpil
Copy link
Member Author

lpil commented Apr 25, 2024

A new lesson on record patterns or something like that sounds good to me!

xxKeefer added a commit to xxKeefer/language-tour that referenced this issue Apr 25, 2024
use correct terms, clean up code example, explain everything that need to be

gleam-lang#56
lpil pushed a commit to xxKeefer/language-tour that referenced this issue Jun 12, 2024
lpil pushed a commit to xxKeefer/language-tour that referenced this issue Jun 12, 2024
use correct terms, clean up code example, explain everything that need to be

gleam-lang#56
@lpil lpil closed this as completed in #88 Jun 12, 2024
lpil pushed a commit that referenced this issue Jun 12, 2024
use correct terms, clean up code example, explain everything that need to be

#56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants