in reply to Re^7: Nesting Functions
in thread Nesting Functions

My "OK" is on your edit where variables in python are now described as being similar to my, rather than implying that they are equivalent ;-). As a compromise, I can also change my statement into:

Python doesn't have sane lexicals.

Replies are listed 'Best First'.
Re^9: Nesting Functions
by LanX (Saint) on Jul 19, 2019 at 15:11 UTC
    > on your edit where variables in python are now described as being similar to my

    not sure if I introduced "similar" now, but I certainly wrote "More or less" right from the begining! :-P

    I think it's a bit messy that we use "lexical" for scope and variable in Perl.

    That's why the documentation for our is confusing, it binds a symbol inside a lexical scope to a non-lexical variable.

    > Python doesn't have sane lexicals.

    Everything has a price, code looks tidier but no chance to have strict checking.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice