syntactic sugar
English
Etymology
Attributed to by British computer scientist Peter Landin.
Pronunciation
Audio (US): (file) Audio (General American): (file)
Noun
- (programming) Additions to the syntax of a programming language that make code easier for humans to read or write, but that do not change the functionality or expressiveness of the language.
- Coordinate term: syntactic salt
- In fact, this is how lists are actually built, by consing all elements to the empty list,
[]. The commas-and-brackets notation is just syntactic sugar, a more pleasant way to write code. So[1, 2, 3, 4, 5]is exactly equivalent to1:2:3:4:5:[].WB
Derived terms
- desugar
- desugared
- syntactic saccharin
- syntactic salt
- syntactic syrup
Translations
Translations
|
See also
Further reading
- syntactic sugar on Wikipedia.Wikipedia