Hacker News new | ask | show | jobs
by JoeAltmaier 5019 days ago
NOt quite - throw doesn't specify where to go, leaves it up to the caller. Very much more useful.
1 comments

Yeah, but the problem with GOTO isn't at the GOTO end - that is usually very clear - in this case go here...

The real problem is at the arrival point 'where has the thread of execution come from, and what state is the programme in'.

Exceptions have the same arrival problem 'where in the code did this come from, and what was the state when it was thrown?'

Time to bring up the COME FROM statement: http://en.wikipedia.org/wiki/COME_FROM