ML poster: "Can we fix PHP ternaries to finally work the right way?" Me (at least, what I want to respond): "Okay. Ternaries in PHP are now: `expr if cond else expr`" (python style)pic.twitter.com/MWXaBFXxlZ
-
-
"it's just not the only conceivable three-argument operator" Absolutely true, but I'd argue convention matters for a hell of a lot in language. Also, I regard any use of == as "a conditional structure" so :p to your semantics.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.