Weitere Beispiele werden automatisch zu den Stichwörtern zugeordnet - wir garantieren ihre Korrektheit nicht.
The two forms below work in the same way; the differences are just syntactic sugar.
Aside: we have been using Mercury's syntactic sugar for lists throughout.
As a form of syntactic sugar, the two lines like that above can be written:
There are very few building blocks in the language, but much syntactic sugar to make it more readable.
In the C language, the notation is syntactic sugar for .
Note that although there are quite a few constructs, most of these are syntactic sugar.
However, the declaration is just syntactic sugar for .
When your language is nowhere near Turing-complete, syntactic sugar can be your friend.
Cascading is syntactic sugar that eliminates the need to list the object repeatedly.
The syntactic sugar of the maybe block would get translated internally to the following expression:
Syntactic sugar for computing with arrows and recursively-defined monadic values.
Oz is based on a core language with very few datatypes that can be extended into more practical ones through syntactic sugar.
As has been mentioned, DCGs are nothing more than syntactic sugar.
Lua provides some syntactic sugar to facilitate object orientation.
Here are some examples, along with equivalent forms using some syntactic sugar on the right:
The function is syntactic sugar for the function that prints a newline character.
In C, there is syntactic sugar for accessing members of a struct or union, given a pointer to such.
Such lambda expressions are defined in the standard as syntactic sugar for an unnamed function object.
In theory, AppleScript is a simple language with considerable syntactic sugar that makes code easy to read and write.
Using some additional syntactic sugar known as do-notation, the example can be written as:
This is one example where proposals to change syntax in order to "save typing" have been characterized as "syntactic sugar."
So the "I" is merely syntactic sugar.
In computer science, syntactic sugar is syntax within a programming language that is designed to make things easier to read or to express.
Two forms of syntactic sugar are provided:
Syntactic sugar causes cancer of the semicolon.