[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [perl #58430] perlbug AutoReply: Unicode::UCD::casefold() doesnot work as documented, nor prob as intended
karl williamson wrote, some time around 05/09/2008 02:52:
[...]
> Another option would be to two extra boolean parameters, to denote
> whether or not one wanted Turkish or not, and whether or not one was
> willing to get a length-changing folded string returned.
Boolean (positional?) parameters? Ick. Make them named parameters,
and/or introduce new functions into the namespace, such as casefold_TR()
[would people confuse ISO .tr with tr///?] and
casefold_variable_length() [but that's too verbose].
> This latter implementation would make it clearer to the application
> writer what the implications of those choices are.
Lock the implementations down into separate API functions (even if they
call an underlying workhorse function). A multi-modal function helps no-one.
David
--
stubborn tiny lights vs. clustering darkness forever ok?
- References to:
-
karl williamson <contact@khwilliamson.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]