Comment

Comment by mcbutterbunz

I agree. To me, its simpler to understand. Suppose x is a bool, reading the code, I say to myself "if not true..." or "if not false..." and my ape brain gets confused on what happens if its not true or not false.

Reading "if true == false" or "if false == false", it becomes much clearer what we're testing here and I understand it instantly.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton