[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [SVN-DEV] PUBLIC POLL: final static

From: C. Scott Ananian <cananian_at_lesser-magoo.lcs.mit.edu>
Date: 2001-11-30 20:10:12 CET


+1 accessors.

*Every* reasonable java implementation in this day and age should inline
simple accessor methods. [Those that don't are far too slow to be
competitive.] Using accessor functions future-proofs your implementation
by allowing you to extend the accessor, etc, without forcing an API change
on all of your clients.

The other consideration is that "A.foo" is usually a lot cleaner-looking
than "A.foo()", but that's just because Java chose to ignore history.
Many (most?) object-oriented languages have recognized that using the same
syntax for field accesses and message sends allows the implementation to
change from a field representation to an accessor method withohut forcing
the above-mentioned API change on clients. If that were the case for
Java, I'd be voting for fields.

SEAL Team 6 COBRA JANE [Hello to all my fans in domestic surveillance]
Philadelphia postcard Saddam Hussein affinity group FBI pending Ortega
              ( http://lesser-magoo.lcs.mit.edu/~cananian )

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:50 2006

This is an archived mail posted to the Subversion Dev mailing list.