Le 05/04/2013 00:14, Jörg Schaible a écrit :
> Gary Gregory wrote:
>
> you.doItUpper("Foo")
> you.DoItLower("Foo")
or a CharUtils.toUpperCase(char[]) method in [lang]
Emmanuel Bourg
smime.p7s
Description: Signature cryptographique S/MIME
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:/
Worry not, I consider code duplication an affront to my extreme/agile
programmer creds as much as the next guy/gal.
This said, yes, I am proposing duplication.
Over the years, when I've mentioned one commons component depending on
another, tomatoes start flying.
There is a definitive camp that r
Le 04/04/2013 22:12, sebb a écrit :
> The enum is two-state only; the duplication is tiny.
The duplication will create a confusion in projects using lang and codec
(which is quite common). Typically the auto import popup in IntelliJ
will suggest the two alternatives when trying to resolve the Let
On 4 April 2013 20:46, Matt Benson wrote:
> In this case I wouldn't consider the duplication to be that big a deal.
>
+1
The enum is two-state only; the duplication is tiny.
> Matt
>
>
> On Thu, Apr 4, 2013 at 2:41 PM, Emmanuel Bourg wrote:
>
> > Le 04/04/2013 21:28, Matt Benson a écrit :
>
In this case I wouldn't consider the duplication to be that big a deal.
Matt
On Thu, Apr 4, 2013 at 2:41 PM, Emmanuel Bourg wrote:
> Le 04/04/2013 21:28, Matt Benson a écrit :
> > I rather thought Gary was suggesting to duplicate the enum in both libs.
>
> Hum, a dependency or a duplication th
Le 04/04/2013 21:28, Matt Benson a écrit :
> I rather thought Gary was suggesting to duplicate the enum in both libs.
Hum, a dependency or a duplication then? Rope or guillotine? :)
Emmanuel Bourg
smime.p7s
Description: Signature cryptographique S/MIME
I rather thought Gary was suggesting to duplicate the enum in both libs.
Matt
On Thu, Apr 4, 2013 at 2:22 PM, Emmanuel Bourg wrote:
> Le 04/04/2013 15:48, Gary Gregory a écrit :
>
> > Here is what it would look like in [codec]: http://pastebin.com/HcyiqgCP
> >
> > Thoughts?
> >
> > How about d
Le 04/04/2013 15:48, Gary Gregory a écrit :
> Here is what it would look like in [codec]: http://pastebin.com/HcyiqgCP
>
> Thoughts?
>
> How about doing the same in [lang]?
>
> Thoughts?
I understand the issue but I'm not fond of the solution suggested. The
LetterCase enum would be best suited