Hacker News new | ask | show | jobs
by withinboredom 1148 days ago
goto isn't that dangerous, or that strange. It has it's place (like inline retries instead of recursion or for-loops) but it's rare to reach for them in most languages.
1 comments

Semaphores are like a restricted form of goto which lets you branch exactly, say, two lines forward or two lines back. Building concurrency primitives out of semaphores is like using that goto to build control flow.
Sounds more like an if-statement than a goto. I catch your meaning though.