Comment

Comment by o11c

Convert them to arithmetic. If you ignore the casting,

  a && b   is just   a * b
  a || b   is just   a + b
Now you remember the precedence between them (except in broken languages, of which the only notable one is shell).
parent o11c 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton