News for hackers. Stuff that matters.
Re:Why I'm not a React Native developer by GordonS on Sunday August 20, 2017 @05:17AM (#15057637)
What? I've been coding in multiple languages for multiple platforms for almost 30 years and have never come across it. It seems rather unlikely that it's 'extremely common'
Re:Why I'm not a React Native developer by slrz on Wednesday August 23, 2017 @05:39PM (#15085441)
It is very common in C code, where for most of its history you hadn't any explicit boolean data type but used int, following the rule that zero is false and anything else is true.

The '!!expr' is the idiom most people use whenever the need for a canonical 0/1 representation arises.