Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: How to reverse a (Unicode) string

by Juerd (Abbot)
on Jan 10, 2008 at 21:42 UTC ( #661741=note: print w/ replies, xml ) Need Help??


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

The way I expect it to work, is that Unicode strings don't get encodings, but byte buffers and I/O handles do. If you give a Buf an encoding, you can treat it as a Str, as long as the encoding is consistent. Using a real Str may perform much better, because Perl 6 can encode it internally however it wishes, and can make many more assumptions (for optimization purposes).

Giving a Unicode string an "encoding" property is the wrong way around, but it can take quite some time and experience before one realises that.


Comment on Re^5: How to reverse a (Unicode) string

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-28 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls