Will you hire this guy?
ro31337.github.io
ro31337.github.io
The use of 'goto' in C to separate error-handling code from main-line code is a commonly accepted practice.
Also, "goto" isn't an operator.
So I wouldn't state something like "Even Linus isn't perfect," rather "you should be open minded to learn new development idioms in environments where you're less experienced."
Lest you doubt me, let me quote the final sentence which you probably didn't read after the first, and impulsively felt the need to run back to HN and show everyone how smart you are: "Author of this code is Linus Torvalds. This world is not perfect and your judging based on small peice of code just doesn’t work."
IOW, Roman might very well know C better than you do, and ironically folks like you might be the reason he wrote the post in the first place.
As for the other comments, I'm thinking I'm reading this quite differently than others. That's cool, that's why we have a voting system I guess.
- the code is "awful"
- the programmer "doesn’t know basics"
- "goto statement in C" is somehow anathema
Most likely, the code evolved in a way that makes the goto look sillier than it did in the original version of the code.
Direct link: https://github.com/torvalds/linux/blob/48d10bda1f2c69980601a...
It makes me wonder if folks growing up in the permanent digital foot print age will be able to escape their early years. There is a reason police records for minors are often sealed, so as adults the things they did as kids don't permanently stain their lives. It is the basis for the right to be forgotten movement in the EU as far as I can tell.