News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by maxxxxx on Monday May 06, 2019 @09:39AM (#19839265)
“If you don't put the same type on each return sides of your ternary, you might be in for a nasty surprise.”

Definitely true for JavaScript and PHP. I am always surprised what expressions can evaluate to true or false.

There are no comments on this comment yet.