-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Twisted schreef:
You can't snip the whole argument and handwave "I do not think it is
valid" and expect to be believed.
You’re right, sorry.
Either respond in detail and marshal
some evidence to support your POV, or forget about it.
I already indicated that I did not understand your argument. I do not
see any reason at all to introduce non-nullable variables etc., I do not
even see how it is related to checked exceptions.
Since I do not grasp your concerns, it is impossible for me to reply to
them.
If you have a
detailed proposal for how to make all the RuntimeExceptions checked
without driving Java programmers mad (or everyone just spalling
"throws RuntimeException" on every method), then by all means spell it
out.
Of course I do not have such a proposal. However, I just wanted to
point out that it isn’t impossible.
But pointing us to some Web site regarding some other programming
language entirely is a cop-out. We want to discuss these ideas here in
the newsgroup, not go off someplace else and read a monologue on the
subject where we can't reply with our own thoughts, and which isn't
even based on Java.
ACK.
P.S. whether it is doable with RuntimeException or not, I think it's
frankly impossible with Error. Those can literally pop up anywhere.
Any "new" can throw OOME, for instance, and therefore any method call
might, since it might have a "new" in it directly or by way of further
calls. Making those checked really would just force everyone to put an
explicit "throws Error" on every method. Right now, basically, a
"throws RuntimeException, Error" is implied on every method
declaration, and I think that's just fine...
Indeed. Maybe on second thought, I am all in favor of getting rid of
checked exceptions, since all exceptions should be handled _always
anyway_. Even OOME, be it that you do not do anything and just quit
(that is also a way of handling it). So basically, every function
should be put in a try catch block. But then, what is it for, if it is
always there? If you think this further, you might as well leave that
out and just attach to each method a block that describes what to do in
case of failure. That is basically what Eiffel does.
H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFGjQGWe+7xMGD3itQRAm0PAJ0blGQUhqdffvTjY0KMxDlnlzmoJwCfb5CM
8GKMr/1iUn1UzrlQ/Us3IL8=
=8XcG
-----END PGP SIGNATURE-----