@eniko Sorry "I am TOO OLD SKOOL" ( and mostly C/C++/ASM only ) .. WHAT LANGUAGE on Earth has a 0 || 5 = 5 ??! 😱
@gilesgoat @eniko JavaScript 😬
@Xarizzar @gilesgoat @eniko That is probably the most annoying feature of JavaScript I ever experienced. I am old-school and learned that "0 || 5 == 1 (true)", as defined by Boolean Algebra, but then I saw how it was used in some JavaScript-code and my brain exploded.
Using it instead of "0? 0:5" is really annoying, especially since JS has the "?"-op.
@gilesgoat To be fair, at that point, just use parenthesis, and/or maybe actual if statements, no? Sometimes programming is a work of art but damn if we all don't need to be a little bit more clear in our code at times, hahaha