DEV Community

Discussion on: Sh*tpost: can we stop saying "syntactic sugar"?

Collapse
demolishun profile image
Demolishun

Unnecessary features that improve the QOL of the programmer.
In Qt there is the keyword "emit" that compiles to nothing. It is only used to show the intent of the code to follow. Easing understanding later. Someone also mentioned +=, *=, -=, etc.
My gut reaction is something that may cause you to say "SWEET!", but a lot of things fall under that category.

However, QOL could encompass the entire language if the definition is taken too far. Maybe someone could define a mathematical test of syntactic sugar?