On Sat, 25 Oct 2014 16:03:16 +1100, Steven D'Aprano wrote: > [Alister] >> I had to mentally step through this before it became apparent what it >> was doing, can see places where it could be usefull (a switch >> replacement) but it is not instantly obvious > > Very little code is instantly obvious. Even when you know what the > syntax means, you still have to understand the semantics, and sometimes > that's far from obvious. > > >> a = <value> if <condition> else <another Value> >> >> is instantly obvious (at least to a native English speaker anyway) > > Ha! And yet people have, and continue to, complain *bitterly* about the > non-standard ordering of Python's ternary if, compared to C, standard > if...else syntax, and English.
Not Me, I don't program i C & I don't want to it is too low level fro my liking (& I used to program in assembler for a living) -- "You need tender loving care once a week - so that I can slap you into shape." - Ellyn Mustard -- https://mail.python.org/mailman/listinfo/python-list