New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode::UCD::num returns empty list #13401
Comments
From zefram@fysh.orgCreated by zefram@fysh.orgUnicode::UCD::num is documented to return undef for a non-numeric $ perl -MUnicode::UCD=num -lwe 'print 0+@{[num("a")]}; print 0+@{[num("2a")]}' Perl Info
|
From @khwilliamsonOn 11/04/2013 11:17 AM, Zefram (via RT) wrote:
The functions in Unicode::UCD almost entirely follow PBP recommendations |
The RT System itself - Status changed from 'new' to 'open' |
From @arc(Apologies for the tardiness of this response.) Karl Williamson <public@khwilliamson.com> wrote:
I disagree. My view is that the functions in Unicode::UCD that return When Damian advocates using bare return for failures, he motivates it use Unicode::UCD qw<num>; This is an odd thing to optimise for, in a function that can never if (defined(my $num = num($potentially_numeric)) { In many cases it might even be rather easier: my $num = num($potentially_numeric) The biggest disadvantage of using bare return (in a function that my %num_for_string = ( is outright misleading. If num() always returns a single undef on I developed this argument further in a talk I did a couple of times http://aaroncrane.co.uk/talks/calamitous_context/ -- |
Migrated from rt.perl.org#120460 (status was 'open')
Searchable as RT120460$
The text was updated successfully, but these errors were encountered: