commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <joerg.schai...@gmx.de>
Subject Re: [codec][lang] LetterCase proposal
Date Thu, 04 Apr 2013 22:14:03 GMT
Gary Gregory wrote:

> Hi All:
> 
> I do not like using a boolean to say uppercase vs. lowercase, you can't
> tell what the code does when you see
> 
> you.doIt("Foo", true)
> 
> I'd like to use an Enum:
> 
> you.doIt("Foo", LetterCase.UPPER);
> 
> Here is what it would look like in [codec]: http://pastebin.com/HcyiqgCP
> 
> Thoughts?

you.doItUpper("Foo")
you.DoItLower("Foo")

If the enum only has two states, this solution is worth a thought. And we 
have no ambiguity between lan and codec.

> How about doing the same in [lang]?
> 
> Thoughts?

- Jörg


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


Mime
View raw message