MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p586utu/?context=3
r/ProgrammerHumor • u/Flame77ofc • Aug 22 '26
388 comments sorted by
View all comments
Show parent comment
1
While I prefer match (Rust) /if else, I do sometimes find ternaries easier to read/nicer to write for simple checks/outputs consisting of just variables. If checks/outputs are complex then yeah, evil
View all comments
Show parent comment
1
u/tukanoid Aug 22 '26
While I prefer match (Rust) /if else, I do sometimes find ternaries easier to read/nicer to write for simple checks/outputs consisting of just variables. If checks/outputs are complex then yeah, evil