ternary operator

Dan Bishop danb_83 at yahoo.com
Wed Feb 5 22:51:47 CET 2003


Alexander Schmolck <a.schmolck at gmx.net> wrote in message news:<yfssmv3egfu.fsf at black132.ex.ac.uk>...
...
> Indeed the "disadvantage" of having a `if-else`-statement simply evaluate
> everything seems to outweight the disturbingly ugly and cryptic syntax and the
> waste of one of the few still unused non-alphanumeric characters for no
> expressive gain.

How about something like "(if a: b else c)", which uses no punctuation
or keywords other than those that are already part of the language?




More information about the Python-list mailing list