News for hackers. Stuff that matters.
Re:Maud: A Rust macro for writing HTML by jraph on Tuesday June 07, 2022 @08:27AM (#31653182)
The way I see it, syntax sugar can be part of the language proper.

For instance classes in JS are sugar syntax to define a function that defines fields in this and prototype members of this function.

Arrow functions are sugar syntax to define functions bound to a specific this.

async / await is sugar syntax for promises.

for..of is sugar syntax for iterating over an iterable.

There are no comments on this comment yet.