Sentence examples for syntactic sugar from inspiring English sources

Dictionary

syntactic sugar

noun

Additions to a that make 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 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 to 1:2:3:4:5:[].

Exact(13)

So what you can do, if you like, is introduced some syntactic sugar that's called collect.

In an interesting parallel with Java, ES6 adds to the language but does not deprecate anything – in fact, a lot of the features are actually syntactic sugar.

And this collect is just some syntactic sugar for automatically generating that nest of flatmaps and flatmaps.

Drawing an analogy with functional programming, we have the λ-calculus but we are missing the functional programming language: syntactic sugar, language constructs, data-structures, etc.

After the grammar generation phase, the Grammar Engineer can manipulate it to add syntactic sugar to improve the final language quality or even to add specific semantic actions.

And all this is is another way, a piece of syntactic sugar, a more convenient way for writing that chain of conses cons of cons of cons of cons of cons of cons onto nil.

Show more...

Similar(47)

Our brains are syntactic engines.

Syntactic Structures.

This solves the "syntactic" problem.

Discovering syntactic hierarchies.

Expectation-based syntactic comprehension.

Show more...

Ludwig, your English writing platform

Write better and faster with AI suggestions while staying true to your unique style.

Student

Used by millions of students, scientific researchers, professional translators and editors from all over the world!

MitStanfordHarvardAustralian Nationa UniversityNanyangOxford

Since I tried Ludwig back in 2017, I have been constantly using it in both editing and translation. Ever since, I suggest it to my translators at ProSciEditing.

Justyna Jupowicz-Kozak quote

Justyna Jupowicz-Kozak

CEO of Professional Science Editing for Scientists @ prosciediting.com

Get started for free

Unlock your writing potential with Ludwig

Letters

Most frequent sentences: