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 the import statement

As part of my series on Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I am going to cover import statements [https://docs.python.org/3.8/reference/simple_stmts.html#

Unravelling boolean operations

As part of my series on Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I am going to cover boolean operations [https://docs.python.org/3/reference/expressions.html#boolean-operations]: a

Unravelling membership testing

This post in my series on Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I am going to cover membership testing: in and not in. As the language reference says [https:

Unravelling `not` in Python

For this next blog post in my series of Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I'm tackling what would seem to be a very simple bit of

Unravelling `is` and `is not`

As part of this blog series on Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I said in the post on unary arithmetic operators [https://snarky.ca/unravelling-unary-arithmetic-operators/] that it might

© 2013 Brett Cannon