Tutorial :What is the origin of the throw/catch exception naming? [closed]



Question:

Was the creator of this construct a baseball fan?


Solution:1

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


Solution:2

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


Solution:3

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.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »