Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^8: Repurposing reverse

by ikegami (Pope)
on Jan 31, 2011 at 16:10 UTC ( #885302=note: print w/ replies, xml ) Need Help??


in reply to Re^7: How to reverse a (Unicode) string
in thread How to reverse a (Unicode) string

Second one first: I've already asked Jim for what youhe thinks would be a clearer name for an element of a string element. But,

The first one is a counter argument for what I said. With that, one could declare reverse to be buggy because it should be reversing text, and make it so it reverses sequences of graphemes, which is a much more common use case.

Update: Didn't realize I wasn't replying to Jim. Fixed.


Comment on Re^8: Repurposing reverse
Download Code
Re^9: How to reverse a (Unicode) string
by Anonymous Monk on Jan 31, 2011 at 16:37 UTC
    I'm an Anonymous Monk who suggested someone submit perlbug report -- i don't really follow everything you two are saying

      I intend to submit a perlbug report. I've never used perlbug before, so I want to take the time to do it right and not botch it. I get the sense the Perl maintainers don't suffer fools lightly, so I don't want to be foolish.

      The only thing I am saying in this discussion is that several of Perl's built-in string functions (e.g., reverse) are not sufficiently Unicode-conforming. Today, a modern scripting language whose traditional strength is text processing needs to be fully capable of handling the complex richness of Unicode with aplomb. An important example of something a modern scripting language needs to be able to do is this: When it reverses Unicode text, it must do it correctly by grapheme clusters, not incorrectly by code points.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://885302]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-07-29 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls