I have read this page a few times, and have even started using this language feature in my project, but I still don't really get the concept.

Like, why should we actually use it? Right now, this looks like syntax sugar to me.

It doesn't help that my brain sees this as a quirky assignment...

I appreciate if anybody can simplify this concept to me.

Thank you in advance ๐Ÿ™

P.S. My experience with Gleam has been awesome so far. If its ecosystem could be a bit more mature, it would easily be my favourite programming language.

P.P.S. If it helps (with drawing parallels), I am most familiar with Python, followed by Javascript and Java, and have touched C, Dart, Kotlin and Rust some time back.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [S] 1 point 3 days ago

Nothing wrong with syntax sugar per se.

It's just that it hides the underlying concept, no? And that's what I am actually trying to learn.

Otherwise it's like magic to me, and I would end up using it blindly.

  • source
  • parent