Leon Rosenberg wrote:

On Fri, 2005-08-05 at 08:13 -0600, Larry Meadors wrote:
Who cares? is opacity not the point of Object Oriented-ness?

maybe. But code readability is the more important feature :-)
If I'm reading the code and see a property access all I need to know is that I'm accessing a property. I'd argue that at that level of code inspection I _shouldn't_ know if it's going through a method or not.

If I implemented the property accessor then it's trivial to jump to the accessor definition via IDE/whatever, if it's a black-box class then I'll never know anyway.

There's no appreciable difference in functionality, but I think the C# implemetnation is marginally cleaner because:

(a) No annoying get/setXXX() (minor, and essentially irrelevent-with clever IDE/editor usage I never have to type it anyway) (b) Properties are defined in their own block--nice in folding editors and visually obvious.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to