3 ms·
> few languages still have something they call goto, but it's different and far weaker than the original goto. And most languages don't even have that. What hap
by hardware2win 4y ago
> few languages still have something they call goto, but it's different and far weaker than the original goto. And most languages don't even have that. What happened? This was so long ago that most people aren't familiar with the story anymore, but it turns out to be surprisingly relevant. So we'll start by reminding ourselves what a goto was, exactly, and then see what it can teach us about concurrency APIs.
Exceptions? :p
- kaba0 4y agoExceptions only propagate upwards the call stack, which can be equivalently done with return statements and some logic.
- hardware2win 4y agoHmm With return you can jump only 1 level higher at once
- kristov 4y agoPlus exceptions don't return to the call location - control jumps down to the catching block. Exceptions are not goto, but they are not like regular function returns either. Some weird thing in between.