develooper Front page | perl.perl5.porters | Postings from August 2021

Re: "use v5.36.0" should imply ASCII source

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
August 7, 2021 11:46
Subject:
Re: "use v5.36.0" should imply ASCII source
Message ID:
YQ5yn6s8cIMV5zdM@iabyn.com
On Fri, Aug 06, 2021 at 11:51:01PM -0700, Darren Duncan wrote:
> Perhaps a reasonable design would be that if a file contains a UTF-8
> declaration anywhere in it, the entire file is treated as such, both the
> part above and the part below that declaration.  And if multiple conflicting
> encoding declarations exist for the current file, that is an error.

How could that possibly work? If the 'use utf8' appears halfway through
the source file, does that retrospectively invalidate everything parsed so
far?

-- 
Monto Blanco... scorchio!

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