commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Yu <j...@scioworks.com>
Subject Re: [lang] Ideas for Lang
Date Mon, 14 Oct 2002 09:06:12 GMT
At 12:18 pm 14-10-2002, you wrote:
> >
> > I suppose what you have in mind is MutableString extends java.util.String.
>
>String is final. Same for all/most of the Immutable painful things.

Oops, missed the obvious... ;-p

> >  > 4) Pair. Is this Collections? Dunno. Anyway, pairs seem to be nice
> >  > sometimes. I only have one because I was porting the lisp examples 
> to Java
> >  > from the lisp book [yep, i'm that sick].
> >
> > Isn't o.a.c.collections.DefaultMapEntry, fulfilling the role of Pair?
>
>Possibly, though it isn't semantically. Assuming there's a need for a Pair
>class, using DefaultMapEntry would not fulfill it, even if the
>functionality were the same.
>
>My vague view being that things can be syntactically the same but
>semantically different.


You lost me.
Could you elaborate? What semantics you're referring to in Pair?

-- 
John Yu


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


Mime
View raw message