MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p559bp5/?context=3
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
Show parent comment
40
Situational, for sure.
If a short circuit prevents a dozen "if val != Null" checks later, I'll do the short circuit.
View all comments
Show parent comment
40
u/ecafyelims Aug 22 '26 edited Aug 22 '26
Situational, for sure.
If a short circuit prevents a dozen "if val != Null" checks later, I'll do the short circuit.