develooper Front page | perl.perl5.porters | Postings from July 2010

Re: [perl #76402] [PATCH] Locale::Maketext One Sided Lexicons

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
July 15, 2010 10:54
Subject:
Re: [perl #76402] [PATCH] Locale::Maketext One Sided Lexicons
Message ID:
20100715175445.GP18045@fsck.bestpractical.com



On Thu, Jul 15, 2010 at 10:37:19AM -0500, Todd Rinaldo wrote:
> 
> On Jul 8, 2010, at 8:57 AM, Jesse Vincent wrote:
> 
> > 
> Jesse,
> 
> Onesided-ness is a complementary feature to _AUTO, not a replacement. 
> 
> When you have code that uses _AUTO, Locale fall back happens. The only way to prevent this is to inject a key with an equivalent value to prevent fallback. Sometimes unexpected defaulting might happen. This isn't something you'd use all the time, but in the cases where you do, onesided-ness is more "fat-finger safe" than duping key and value pairs.


This just feels like feature creep that might better belong in a
subclass.

And for that matter, why not add an option that works like _AUTO rather
than all the duplicated entries?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About