gleam-lang / language-tour

👩🏽‍💻 Learn Gleam in your browser
https://tour.gleam.run/
74 stars 55 forks source link

Generic types in records #33

Closed DavidZwitser closed 4 months ago

DavidZwitser commented 5 months ago

Hello! The language tour is lovely :). Possibly a small thing, one pattern I was not made familiar with trough the tour was this: type Name(val) { Name(val) }

Might be nice to have it in there for completeness (assuming it was not on purpose). It would also explain the Result module part with Ok(1) Error(1) a lot more. And .. now that I go over it, I notice functions must start with a lowercase and types with an uppercase, how lovely! I also didn't read about that, might also be nice to be explicit about aswel :) (assuming I didn't miss it in the text).

lpil commented 4 months ago

Thank you! I've sorted this now