Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kaba0
on July 2, 2022
|
parent
|
context
|
favorite
| on:
Notes on structured concurrency, or: Go statement ...
Exceptions only propagate upwards the call stack, which can be equivalently done with return statements and some logic.
hardware2win
on July 2, 2022
[–]
Hmm
With return you can jump only 1 level higher at once
kristov
on July 2, 2022
|
parent
[–]
Plus 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: