News for hackers. Stuff that matters.
Re:JavaScript: Double Bitwise Not (~~) by darrenf on Wednesday November 29, 2023 @05:11AM (#38457608)
Of course in Perl, a language not exactly immune from "syntax tricks", `and` doesn't always behave the same as `&&` :)

    $ perl -E 'say 1,2,3,4 and 5; say 1,2,3,4 && 5'
    1234
    1235
Re:JavaScript: Double Bitwise Not (~~) by tyingq on Wednesday November 29, 2023 @06:08AM (#38457993)
Not defending it as sensible, but that difference in precedence is deliberate...not an oversight or side effect.