Hacker News new | ask | show | jobs
by s4i 933 days ago
Well, surely that comparison is a bit unfair. :) In my books, using `~~` is closer to shit like abusing `[]+[]` to get an empty string, than using `&&` which is its own separate, widely used operator in the language.

You could maybe compare `~~` to something like `if (!someString)` but, again, that's a widely used and way more easily understood pattern.

1 comments

Not just widely used in this language but in others, and the meaning of & is clear even in English.