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 `break` and `continue`

I have previously unravelled for loops [https://snarky.ca/unravelling-for-statements/], and so the concept of looping has already come up in this blog post series of removing the syntactic sugar from Python. But

Unravelling decorators

For the next post in my syntactic sugar series [https://snarky.ca/tag/syntactic-sugar/], I thought I would tackle decorators [https://docs.python.org/3.8/reference/compound_stmts.html#function-definitions] . Let'

© 2013 Brett Cannon