The Source for Java Technology Collaboration
User: Password:



Start New Message Post a Reply

Subject:  Keep the language simple
Date:  2007-01-16 12:41:36
From:  xodox
Response to: Keep the language simple


By default, there would be no need to specify getter/setter code.
public property String title;.


Hmm. Not a bad idea. This way an author of MyClass could later on change his property from:
public property String title;

to:
public property String title{
get{
return this.inner_title;
}
set{
this.inner_title=value;
this.doTheHulaHoop();
}
}


....without breaking any API's? Nice!


















 Feed java.net RSS Feeds