Proposal: Shorthand for single variant custom type #5259
Replies: 3 comments 1 reply
-
|
Probably this won't be accepted to the language since there should be only one way to do something. This just allows you to write less characters and isn't worth it. |
Beta Was this translation helpful? Give feedback.
-
|
Hello! To make a proposal you'll need to include the problems the new feature solves in real code, what options there are today, and the trade offs of the proposal. This article has more context: https://lpil.uk/blog/how-to-add-metaprogramming-to-gleam/ |
Beta Was this translation helpful? Give feedback.
-
|
Honestly I don't think there is a material problem this solves. This is purely aesthetic and therefore almost entirely subjective. Totally see it is not worth violating the "only one way to do something" principle. Mainly just wanted to gauge visceral reaction. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Instead of:
We'd have:
Beta Was this translation helpful? Give feedback.
All reactions