develooper Front page | perl.perl5.porters | Postings from January 2014

Re: Marking a scalar as an unupgradable binary blob.

Thread Previous | Thread Next
From:
Eric Brine
Date:
January 28, 2014 16:35
Subject:
Re: Marking a scalar as an unupgradable binary blob.
Message ID:
CALJW-qGz2KzFCvNb1Qfb-76JRhff6M4HBx+Lu8SVoPMsKg=N0g@mail.gmail.com
On Tue, Jan 28, 2014 at 6:17 AM, Zefram <zefram@fysh.org> wrote:

> Unworkable.  You can't introduce a type distinction into the current
> string type because it would break existing correct code such as
>
>         sub decode_latin1 { $_[0] }
>         $text_chars = $greeting_chars . decode_latin1($name_octets);
>

Making the result configurable (silent, warn, croak) makes that a non-issue
if the default is "silent", although a default of "warn" might be an
acceptable compromise.

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