Re:Why I'm not a React Native developer
by empthought on Sunday August 20, 2017 @10:19AM
(#15058481)
You're kidding, right? "!!foo" is a complete no-op in Java. It is never needed and never correct.
Re:Why I'm not a React Native developer
by lomnakkus on Saturday August 26, 2017 @07:36PM
(#15108074)
You're basically wrong on every single point. It's a syntactic hack in JS to get a guaranteed boolean coersion, but for anything else it's an absolutely pointless abomination. (Maybe PHP has a similar thing, but I haven't programmed in PHP, so I wouldn't know.)
> I would leave a note to a student for using this to be honest - too unclear, and (as this thread denotes) not well known enough to put in production worthy code.
You've done a total disservice to your students that understood negative unary operations then. Given how many upvotes my initial post on this thread has (currently 38) I don't think the thread denotes what you think it does at all.