Comment

Comment by _kst_

"Yoda conditions" are controversial. (Personally, I hate them.)

Some people find conditions with the constant on the left, like `(0 == foo)`, jarring and difficult to read. Other people apparently aren't bothered by them. In my experience, neither group of people will be convinced by the other side's arguments.

https://en.wikipedia.org/wiki/Yoda_conditions

parent _kst_ 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton