Steven Caswell
[EMAIL PROTECTED]
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:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 



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

Reply via email to