Re:JavaScript: Double Bitwise Not (~~)
by cristeigabriel on Wednesday November 29, 2023 @06:00AM
(#38457933)
`&&` and `||` are very well defined (for the better part, there's languages where `||` does more than just Logical OR.), this double-not hack is just a hack, and can be achieved in many more ways. Stop trying to be obfuscatingly clever, the right time and place for that is outside of professional environments. You don't go around applying tricks from Hacker's Delight without explaining them, do you?
While at it we should also remove curly braces and go with Basic's if/end if, function/end function and so on.