le 30/10/04 3:27, Rolf Howarth à email@hidden a écrit :
> No argument about memory and exceptions, they are undoubtedly one of
> the main productivity factors in Java's favour. Not so much how
> they're handled though but the fact that runtime exceptions are
> thrown automatically if you try to dereference a null pointer or go
> past an array bounds. It's all about making code *predictable* in
> advance; precisely what some of these features of C++ negate and why
> I don't want them coming to Java.
You still *think* C++, apparently. How can "dereference a null pointer " in
Java ?
I 100% support the predictability in Java, but how doe C++ "negate" these
features ? I just doesn't have them because there's no underlying VM.
It's very easy to prevent C++ from never dereferencing a null pointer: you
have smart pointers for that.
It's also very easy to prevent C++ from going past an array bounds: you have
operator[] for that.
Java is simply a language where these features are built-in (with many
others).
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden