[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: changes.jpg (127 KB, 1260x405)
127 KB
127 KB JPG
What's wrong with having continue in a switch statement?
Don't normal languages, by default, ask you to put breaks in because this is useful behavior?

else if chains are right there if you don't like switches being switches
>>
switch is gay
pattern matching is also gay
if-else is also gay
just use goto
>>
this is why i dont use game engines. no matter what you will someday find yourself at the mercy of a completely incompetent retard. i would rather that be myself, at least.
>>
>>107078940
If-else statements look too messy on page, switch is so much cleaner to read.
>>
>>107078940
>switch statements
I never see this outside of people who are just learning programming.

>>107078983
This but the complete opposite.
>>
stop using github
>>
>>107078940
>else if chains are right there if you don't like switches being switches
Switch can be more efficient than a long nested chain of if-else.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.