develooper Front page | perl.perl5.porters | Postings from March 2007

Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)

Thread Previous | Thread Next
From:
Juerd Waalboer
Date:
March 30, 2007 14:29
Subject:
Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)
Message ID:
20070330212844.GX31277@c4.convolution.nl
Tels skribis 2007-03-30 22:32 (+0000):
> However, if you have 200Mbyte of ASCII string, it is more efficient to *not* 
> copy the data around just to find out that, yes, all of it is 7bit :)

Indeed, but this is an optimization. Optimization isn't part of teaching
how things work, it always comes after.

Information overload is probably the single most problematic thing in
Perl's unicode documentation. Constantly people are told all those
internal implementation details that they don't have to know. It's no
wonder that they start assuming that they actually need this
information, and use manual setting of UTF8 flags as their first resort
in case of trouble.
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  <juerd@juerd.nl>  <http://juerd.nl/sig>
  convolution:     ict solutions and consultancy <sales@convolution.nl>

Ik vertrouw stemcomputers niet.
Zie <http://www.wijvertrouwenstemcomputersniet.nl/>.

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