syntactic sugar
Noun
This text is extracted from the Wiktionary and it is available under the CC BY-SA 3.0 license | Terms and conditions | Privacy policy 0.002
Noun
syntactic sugar (uncountable)
- (computing) Additions to the syntax of a computer language that make code easier for humans to read or write, but that do not change the functionality or expressiveness of the language.
- In fact, this is how lists are actually built, by cons#Verb|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
- In fact, this is how lists are actually built, by cons#Verb|consing all elements to the empty list,
- French: sucre syntaxique
- German: syntaktischer Zucker
- Italian: zucchero sintattico
- Portuguese: açúcar sintático
- Russian: синтакси́ческий са́хар
- Spanish: azúcar sintáctico
This text is extracted from the Wiktionary and it is available under the CC BY-SA 3.0 license | Terms and conditions | Privacy policy 0.002