News for hackers. Stuff that matters.
Re:Why I'm not a React Native developer by WalterSear on Saturday August 19, 2017 @06:22PM (#15055959)
What it looks like in other languages is only minorly relevant to its obviousness and readability.
Re:Why I'm not a React Native developer by debaserab2 on Saturday August 19, 2017 @06:48PM (#15056067)
I don't see the argument that Boolean(val) "reads easier" than !! as long as you know what !! does.
Re:Why I'm not a React Native developer by goatlover on Saturday August 19, 2017 @07:39PM (#15056223)
Wouldn't any programmer recognize that Boolean(val) is a cast to a True/False value that's most likely an object, given the uppercase?
Re:Why I'm not a React Native developer by inimino on Sunday August 20, 2017 @07:13PM (#15060713)
Perhaps, but it's a primitive, not an object.