Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: A short whishlist of Perl5 improvements leaping to Perl7

by dsheroh (Monsignor)
on Nov 25, 2020 at 12:12 UTC ( #11124188=note: print w/replies, xml ) Need Help??


in reply to A short whishlist of Perl5 improvements leaping to Perl7

It MUST be unnecessary to declare all lexical variables as lexical if 'use strict' is ON by default.
Why?

You've already seen several (very good) arguments against your proposal in previous responses, so I won't reiterate them here, but what is your argument for undermining strict with automine? Is there any reason other than "some subset of (mostly older and unmaintained, I'd wager) existing Perl code won't run under strict"?

Also, I can't help noticing that even the post you linked to as an explanation of automine calls it a bad idea. ("I think that, in Perl, an automine pragma would be very confusing... Whatever the merits of defaulting variables to local scope might be, doing so in Perl would likely be too confusing.")

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11124188]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2021-04-22 16:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?