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

> And while we're at it, GOTO is never a good idea, don't use it even if your language provides it.

Good luck with that if you're a C programmer.



These are not the same thing. The GOTO people complained about and what the famous article "GOTO considered harmful" is about, is called longjmp in C. Nearly all C programmers will agree with you that you shouldn't use longjmp. The goto of C has less freedom for control flow than try-catch constructs in other languages.


Well sure, but don't use it to implement if/while/for.




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

Search: