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

Re: Versioned 'strict'

Thread Previous | Thread Next
From:
Karl Williamson
Date:
September 19, 2014 00:46
Subject:
Re: Versioned 'strict'
Message ID:
541B7CB1.3080400@khwilliamson.com
On 09/12/2014 07:31 PM, Ricardo Signes wrote:
> * "Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> [2014-09-12T04:55:17]
>> Right now /all/ I am proposing is that strict.pm accept and silently
>> ignore a :NUMBER tag, where that number is 5.22 or earlier. This means
>> you can write
>>
>>    use strict :5.22;
>>
>> Yes I know it will crash on a pre-5.21.{mumble} perl in much the same
>> way that "use feature" will crash pre-5.10. That's OK.
>> [...etc...]
>
> Look, it's been a long day, and I've got a toothache, and I ate too many
> pierogies, so accept this as possibly deeply confused thinking, but I'm not
> sure I see a problem with this.
>
> Paul isn't talking about changing what "use strict;" does.  We'd leave that
> doing the same thing as "use strict ':5.8'".  There would be "use strict
> ':5.22'" that also includes "use strict 'time'".  Maybe we'd go nuts and say
> that the "use strict" implied by "use v5.22.0" is the versioned one.
>
> The other thing we can't do without opening a can of worms, I think, is "use
> strict ':latest'", because even if strictures are always safely addative, when
> you need to say, later, "no strict 'time'" but only on the right versions,
> you're in a weird place.
>
> Somebody set me straight, if I'm just too full of ... potatoes.
>

This all sounds ok to mwe

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