develooper Front page | perl.perl5.porters | Postings from November 2011

Re: Make use-version, feature and strict play nicely together

Thread Previous | Thread Next
From:
Karl Williamson
Date:
November 9, 2011 14:08
Subject:
Re: Make use-version, feature and strict play nicely together
Message ID:
4EBAF9E8.9040000@khwilliamson.com
On 11/09/2011 02:56 PM, Aristotle Pagaltzis wrote:
> * Johan Vromans<jvromans@squirrel.nl>  [2011-11-09 14:20]:
>> David Golden<xdaveg@gmail.com>  writes:
>>> but I continue to have concerns with where we seem to be headed with
>>> "use v5.XX".
>>
>> Restrict it to one single occurrence which must be the first line in
>> a program unit and many problems will dissappear.
>>
>> If you want a piece of code to behave according to a specific perl
>> version, put it in a separate module.
>
> This inches fairly close to what I proposed, but I think can be made
> more sane still. Namely, the main program should get to control the
> runtime semantics, for *all* code loaded.
>
> If you ask for 5.24 in the main program, then all loaded code should run
> with 5.24 semantics – i.e. e.g. string operations across the entire code
> base will conform to the Unicode version shipped with 5.24, etc.
>
> But individual program units can ask to be *parsed* according to rules
> as close to e.g. 5.16 as the perl in question can emulate.
>
> Regards,

Let me just say that I consider it untenable that the 5.24 Perl would 
have 'use 5.16' mean that you get the Unicode version that shipped with 
5.16.

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