Comment

Comment by WalterBright

> Comparisons which will always evaluate to true or false and logical expressions (||, &&, ??) which either always short-circuit or never short-circuit are both likely indications of programmer error.

I regularly do things like:

    if (0 && expression) ...
and:

    if (1 || expression) ...
to temporarily disable a conditional when I'm looking for a bug.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton