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

Re: Versioned 'strict'

Thread Previous | Thread Next
Ricardo Signes
September 13, 2014 01:31
Re: Versioned 'strict'
Message ID:
* "Paul \"LeoNerd\" Evans" <> [2014-09-12T04:55:17]
> Right now /all/ I am proposing is that 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About