[Python-Dev] conditional expressions?

Paul Svensson paul-python@svensson.org
Mon, 15 Oct 2001 16:39:30 -0400 (EDT)


On Mon, 15 Oct 2001, Guido van Rossum wrote:

>Sorry, I still don't get this at all.  A conditional expression is
>still an expression.  Curly brances are a statement-level concept.
>What am I missing?  Where is the similarity between the use of { } and
>( ) in C/Java/C++/Perl?

Trying to put a finger on why I think this proposed new syntax looks ugly,
I would say that my biggest problem is that it blurs some of the visual
distictions between statements and expressions that I find helpful
for quickly locating the interesting parts of a piece of code.

I assume this has some parallel to list comprehensions that way,
but I fail to see the same blatant conceptual beauty in this proposal,
motivating the unfamiliar form.

	/Paul