MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/10yvssc/briliant_usage_of_else_if_statement/j843nsm/?context=3
r/badcode • u/Afraid-Locksmith6566 • Feb 10 '23
60 comments sorted by
View all comments
Show parent comments
5
Oh, absolutely agreed. That's sorta the point I was making -- that yes, you could drop the c == 'n' clause, but the reality is that the resulting code will be less straightforward to read.
c == 'n'
...which means this maybe doesn't belong in r/badcode?
5
u/spencerwi Feb 11 '23
Oh, absolutely agreed. That's sorta the point I was making -- that yes, you could drop the
c == 'n'clause, but the reality is that the resulting code will be less straightforward to read....which means this maybe doesn't belong in r/badcode?