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

If you want to mimic Pythons behavior of auto-declaration, you'd also need to introduce something like the command nonlocal to mark closed over variables.

Py3 had to introduce it, and I find it ugly.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: A short whishlist of Perl5 improvements leaping to Perl7

Replies are listed 'Best First'.
Re^2: A short whishlist of Perl5 improvements leaping to Perl7
by LanX (Saint) on Nov 25, 2020 at 14:16 UTC
    Furthermore - and I think this is the toughest part - you'd need to clearly define the role of my under automine

    I think I'm the one who coined the word automine and believe me it's far from trivial.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery