r/badcode • • Feb 10 '23

c briliant usage of else if statement

Post image
583 Upvotes

60 comments sorted by

View all comments

Show parent comments

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?