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 rich comparison operators

For the next part of my blog series on pulling apart Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], I'm going to be tackling rich comparison operators: ==, !=, >, <

Unravelling unary arithmetic operators

In this entire blog series on Python's syntactic sugar [https://snarky.ca/tag/syntactic-sugar/], this might end up being the most boring post. 😄 We will cover the unary arithmetic operators: -,

© 2013 Brett Cannon