Y
Hacker News
new
|
ask
|
show
|
jobs
by
qznc
54 days ago
I would not describe exceptions as return values. Speaking in a C context, exceptions are more like "longjmp" than "return".
1 comments
jonenst
54 days ago
They're both ! Exception are definitely viewed as an alternate communication channel. And stack unwinding is one aspect of the communication. See
https://nedbatchelder.com/text/exceptions-vs-status#h_valuab...
(and many other)
link