tags:

views:

357

answers:

5

Was the creator of this construct a baseball fan?

+6  A: 

Just be thankful it's not "setjmp/longjmp" any more.

Paul Tomblin
HAHA UP FOR THE HUMOR!
bLee
+3  A: 

I don't know, but I recall that LISP had a THROW function back in '76 or so. You would throw a value out of some deeply-nested set of parentheses, and where it was caught, it would return that value.

John Saunders
+10  A: 

See Stroustrup's book "The Design & Evolution of C++" - basically, "raise" was already taken.

anon
+6  A: 

From http://www.cs.bgu.ac.il/~frankel/TechRep/pdfs/TR-08-03.pdf

MacLISP was first to introduce catch/throw as an exception handling mechanism for handling exceptional conditions[9]
...
[9]Moon, D. A. The MacLisp Reference Manual. MIT Project MAC, April 1974.

Adam Davis
A: 

computer science is full of metaphors . . .

bLee
It's as full of metaphors as a very full thing.
Paul Tomblin
OK. So what? You forgot to answer the question.
Rob Kennedy
@Rob Kennedy: I'm saying that... why throw such question when CS is full of metaphors like throw/catch? Also, many people already answered the question before me.
bLee
yeah, let's go asking from where did they get this word "stack" ?
Johannes Schaub - litb