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

Take advice with a grain of salt is my advice to you. Advice for the average person is not necessarily advice for everyone.

The official client stopped supporting older os like centos 6. Using a third party libruary might be important for some.

People heard using 'goto' is forbidden so many will get upset if one is found in a code base. You can use gotos and in some situations it becomes a better tradeoff. Advice in general is just advice in general..



> People heard using 'goto' is forbidden so many will get upset if one is found in a code base. You can use gotos and in some situations it becomes a better tradeoff.

I'm going completely off-topic on a tangent, but no modern language even supports the goto from the "Goto Considered Harmful" paper. All you can use nowadays (unless you write assembly) is a much weaker version that has none of the problems you'll find there.


The problem the goto solves in a language that have predefined line numbers like basic just doesn't apply with numberless line code bases.

It's an example we can understand..

Like never use jquery use some complex framework when you need 5 actions.


> The problem the goto solves in a language that have predefined line numbers like basic just doesn't apply with numberless line code bases.

That's not true. There are useful times to use goto, but the main issue with its use doesn't have to do with line numbers... Using goto leads to spaghetti code that is difficult to maintain or reason about.


the amount of code in existence in languages that support "goto" is mindblowing. I would wager that the majority of developers have encountered it in a code base. even though it's not modern, it's certainly a relevant example for most people


My suspicion is that the majority of developers today haven’t used anything besides JavaScript or Typescript professionally, with maybe a bit of Ruby or Python.


You mean C?

C hasn't supported the Dijkstra's bad version of goto since the last century. Gcc was one of the first to add a verification against it, so if your code compiles on gcc without any "ancient code" flag, it's not there.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: