syntactic sugar

syntactic sugar definition - computer

Certain coding rules in a programming language that make it easier for a person to write a program. For example, in Perl, the double dot operator is used to create multiple values. Writing ('A' .. 'Z') declares a range of values from "A" to "Z." In many other languages, each value has to be declared individually such as 'A','B','C' etc.

"Syntactic saccharin" is used synonymously with syntactic sugar; however, it also tends to refer to syntax that offers little or no value to the programmer, such as a symbol or word that is always required even though it adds no uniqueness to the expression. Contrast with syntactic salt.



Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments
Improve this definition.
Do you have more to add? Share your linguistic knowledge or observation.
/Register to save your comments.