|
|
|
|
|
by tombert
788 days ago
|
|
Hard disagree that it's "clearer". I have had to deal with a ton of bugs with people trying to be clever with the `break` logic, or forgetting to put `break` in there at all. if statements are dumber, and maybe arguably uglier, but I feel like they're also more clear, and people don't try and be clever with them. |
|
For example, with java there's enhanced switch that looks like this
The C style switch break stuff is definitely a language mistake.