Even after reading Daniel's passionate plea, if(cond,expr,expr) looks ugly to me. It also doesn't solve the parsing ambiguity problem -- it still can't be allowed in an expression that starts a line because the parser doesn't know whether it's an if expression or an if statement without many tokens of lookahead. So, -1 for if(cond,expr,expr). --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4