| Article: |
10 Reasons We Need Java 3.0 | |
| Subject: | Given your subject, I was afraid to read your message... | |
| Date: | 2002-08-06 07:19:01 | |
| From: | ewatkeys | |
|
Response to: Include some of the good parts of C++
|
||
|
But I think const-ness is a very good idea. C++, it can be a real pain to properly implement proper const-ness on an object. Determining what methods change state and what ones don't can take a lot of time. That's my only problem with seeing this feature in Java.
|
||
Showing messages 1 through 1 of 1.
-
Everything is const
2002-08-28 14:17:18 bjsyd70 [View]



Const is not worthwhile - the vast majority of variable I use are const.
Fully identifying this would be painful.
I just worked on some C++ code which would not compile after a compiler/STL version change because of a great many things, including changing interpretations of const.
Brendan