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. It makes the language "sweeter" for human use: things can be expressed more clearly, more concisely, or in an alternative style that some may prefer." -- https://en.wikipedia.org/wiki/Syntactic_sugar

Unravelling ellipsis

... [https://docs.python.org/3/reference/datamodel.html?highlight=ellipsis#the-standard-type-hierarchy] is the Ellipsis singleton. Shortest syntactic sugar blog post [https://snarky.ca/tag/syntactic-sugar/] I have written. 😁

Unravelling literals

In this post of my syntactic sugar series, I want to tackle literals. Now some literals don't really require any code changes and are really just an alternative way to write the same

Unravelling subscriptions in Python

For the next post in my syntactic sugar series [https://snarky.ca/tag/syntactic-sugar/] I want to cover subscriptions [https://docs.python.org/3.8/reference/expressions.html#subscriptions]. It's quite possible you're

© 2013 Brett Cannon