[2067] in java-interest
Re: throws declataration in Java/beta
daemon@ATHENA.MIT.EDU (Larry Reu)
Fri Sep 22 17:13:25 1995
Date: Fri, 22 Sep 1995 09:31:45 -0700 (PDT)
From: Larry Reu <larryr@CyberGate.COM>
To: java-interest@java.Eng.Sun.COM
In-Reply-To: <9509211814.AA06342@pepper.Eng.Sun.COM>
The way Java handles exceptions (no pun intended) isn't
much different from C++. Java just does better compile
time checking.
If you read "The Design and Evolution of C++" Stroustrup
explains why the "throws clause" was added to fct sigs.
He also continues to express his desire to have the
compiler perform compile-time checks on the use of
exceptions but felt it would be cause for many recompiles
since whenever a fct changed its exceptions dependents
would have to recompile (much like changing param types, etc).
I feel the Java folks did it right! Modifying a method to
throw a new exception is just as important as adding or
removing arguments from the fct -- i.e. all clients should
be notified, etc.
......$0.02 for the pot................larry
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com