loading...

re: What do you dislike about your favorite language? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Python's "ternary" operator foo = bar if baz else baz Not sure why, though.
 

I agree, I'd much prefer AutoHotkey's (or similar): ?:
<TEST>?<IF>:<ELSE>

foo := baz?bar:baz
; Or
foo := (baz?bar:baz)
; Or
foo := (a=b)?a:b
; Or 
foo := ((a=b)?a:b)
code of conduct - report abuse