commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Caswell" <st...@mungoknotwise.com>
Subject RE: [lang] So, about that 2.0....
Date Thu, 31 Jul 2003 00:05:11 GMT



Steven Caswell
steve@mungoknotwise.com
a.k.a Mungo Knotwise of Michel Delving
"One ring to rule them all, one ring to find them..."


> -----Original Message-----
> From: Henri Yandell [mailto:bayard@generationjava.com] 
> Sent: Wednesday, July 30, 2003 6:50 PM
> To: Jakarta Commons Developers List
> Subject: Re: [lang] So, about that 2.0....
> 
> 
> 
> 
> On Wed, 30 Jul 2003, Stephen Colebourne wrote:
> 
> > We should avoid NPE and throw IAE wherever possible. Its the new 
> > [lang] way.
> 
> If it's not in the DEV-GUIDE, I'll stick it in now.
> 
> > I propose the clearest is:
> > translate(*str, null, *)  = *str
> > translate(*str, "", *)  = *str
> > translate(*, "abc", null)  = delete chars 'abc' from string 
> > translate(*, "abc", "")  = delete chars 'abc' from string 
> translate(*, 
> > "abc", "z")  = replace chars 'abc' with 'z' translate(*, "abc", 
> > "zyxwv")  = replace chars 'a' with 'z', 'b' with 'y', 'c' with 'x', 
> > ignore 'wv'
> >
> > --> no errors
> 
> +1

+1

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



---------------------------------------------------------------------
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