they did finally add assignments in expressions and conditional expressions, but every time i show a list comprehension to a java programmer they glaze over
so i guess some weird syntax is okay
That's a good thing.
if 1:
my comment makes no sense if you read it assuming i think it's a bad thing
what it is is a weird thing
but then i checked all your comments and sure enough it is pythonic english
weird syntax is okay and some punctuation may be redundant but it sure makes life easier for the eye
Consitional expressions were added in Python 2.5 in 2006.
assignment in expressions took even longer
we were talking about weird syntax, not weird semantics
> python's syntax is whitespace-sensitive and doesn't have curly braces around blocks
that's a plus. the proof is in the pudding. one language has exploded. others haven't. the end.
they did finally add assignments in expressions and conditional expressions, but every time i show a list comprehension to a java programmer they glaze over
so i guess some weird syntax is okay