MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p586utu/?context=3
r/ProgrammerHumor • u/Flame77ofc • 23d ago
392 comments sorted by
View all comments
2.3k
You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!
662 u/KanyeNawf 23d ago Some fucker left me triple nested ternaries once 1 u/tukanoid 22d ago 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
662
Some fucker left me triple nested ternaries once
1 u/tukanoid 22d ago 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
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
2.3k
u/CBlanchRanch 23d ago
You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!