develooper Front page | perl.perl5.porters | Postings from February 2022

Deprecating downgrade of `use utf8`

Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 21, 2022 17:32
Subject:
Deprecating downgrade of `use utf8`
Message ID:
20220221173205.6964977a@shy.leonerd.org.uk
On a similar note: How do people feel about code which turns off the
"my source encoding is UTF-8" pragma after having previously turned it
on? I.e.

  use utf8;
  my $café = "Ĉu vi havas sandviĉojn?";

  no utf8;

If we disallow this kind of thing, we can remove further weird
cornercases from the parser, because a bunch of unlikely situations no
longer come up.

As with VERSION: Are there any actually-valid use-cases for doing this
kind of thing?

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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