logoalt Hacker News

_whiteCaps_06/03/20251 replyview on HN

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

Works especially well in languages that can make assignments in if statements, e.g:

if foo = 42 { }


Replies

macintux06/03/2025

Thank you, I was unaware of this label. Quite descriptive.