MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/teqb37/static_bool_iscrazymurderingrobot_false/i0st73y/?context=3
r/ProgrammerHumor • u/speckz • Mar 15 '22
256 comments sorted by
View all comments
Show parent comment
9
Even if that's the case you should use Yoda style comparisons.
if (true == foo) ...
Putting a typo in that would result in a compilation error, rather than killer robots.
View all comments
Show parent comment
9
u/chasesan Mar 15 '22
Even if that's the case you should use Yoda style comparisons.
Putting a typo in that would result in a compilation error, rather than killer robots.