Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sometimes you even have to, because fall-through is illegal in C# except with empty case labels. goto case makes things more explicit.

Although there is no reason why they wouldn't use goto. The oft-cited "goto statement considered harmful" was in a very different context and basically just ranted against using goto when there are control structures that make intent clearer.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: