I think we're saying the same thing there. :-) Such code amending is needed in languages like Java, because you can't go from a property to a getter/setter _without_ changing the interface. Which is why the Java getters and setters are used almost everywhere - like I said, it's programming in self-defense.
Ian On Wed, Dec 10, 2008 at 10:05 AM, allandt bik-elliott (thefieldcomic.com) <[EMAIL PROTECTED]> wrote: > any code amending outside the class can be avoided if you take the > (self-imposed) rule that internal/private class vars start with a leading > underscore but public ones don't - that way if you need to create getters > and setters, you just create the class var with the _ and the get/set > without > > On Wed, Dec 10, 2008 at 9:43 AM, Ian Thomas <[EMAIL PROTECTED]> wrote: > >> In the programming languages used in the old CS textbooks, you didn't >> have the option to switch from a public property to a getter/setter >> pair without breaking the interface. >> >> Ian >> >> On Wed, Dec 10, 2008 at 8:23 AM, Steven Sacks <[EMAIL PROTECTED]> >> wrote: >> > Keyword: Old. >> > >> > Hans Wichman wrote: >> >> >> >> ps we're probably not the first ones discussing this old subject, has n1 >> >> found some good sources/references? >> >> Most of the old CS textbooks sentence you to hell for using public >> >> variables >> >> so let's not refer to those ;) >> > >> > _______________________________________________ >> > Flashcoders mailing list >> > Flashcoders@chattyfig.figleaf.com >> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > >> _______________________________________________ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders