Open martinstolz opened 10 years ago
I'm :thumbsdown: to switch
es in general.
@KATT me too. But if used?
Maybe have guideline of not using switch
instead?
what have you got against switches? :frowning:
As Apple shows, it is more prone to errors and you can only "switch" integers. I still use them but probably not for less than two or three cases.
switches :heart: enums
Can we add this section? We should also mention that the break
should be inside the brackets for readability
Switches also must have brackets. Why? Consistency and visual separation of code blocks.
:+1: or :-1: ?