[Python-ideas] Syntax: 'return: ...' expressions
ncoghlan at gmail.com
Fri Jan 23 15:56:27 CET 2015
On 21 January 2015 at 11:16, Guido van Rossum <guido at python.org> wrote:
> So it's hard to say to what extent this was a conscious choice and to what
> extent it was just tradition. But there's nothing necessarily wrong with
> tradition (up to a point). I think it still makes sense that statements are
> laid out vertically while expressions are laid out horizontally. Come to
> think of it, mathematics uses a similar convention -- a formula is laid out
> (primarily) horizontally, while a sequence of formulas (like a proof or a
> set of axioms) is laid out vertically.
I really like that "each statement is like a single step in a
mathematical proof" analogy.
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas