commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al Chou <hotfusion...@yahoo.com>
Subject Re: [math] abstact nonsense was Re: [math][functor] More Design Concerns
Date Thu, 03 Jul 2003 19:05:49 GMT
--- "Mark R. Diggory" <mdiggory@latte.harvard.edu> wrote:
> Anton Tagunov wrote:
> > 3)
> > 
> > BTW, probably does the future introduction of Generics (Java 1.5)
> > promise any opportunities to work with primitive values and yet
> > have no code duplication (a bit like STL)?
> > 
> 
> I've not spent much time looking at Generics yet. I have allot to learn 
> in this area.

I believe for our purposes it suffices to describe generics as the ability to
write something like (I'm too lazy to look up the exact syntax):

ArrayList<Double> myArray = new ArrayList()<Double> ;
Double d ;
int position = 0 ;

myArray.add( new Double( 1.0 ) ) ;

// Here's the part where generics make life easier.  Look, Ma, no cast:
d = myArray.get( position ) ;


Al

=====
Albert Davidson Chou

    Get answers to Mac questions at http://www.Mac-Mgrs.org/ .

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message