Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^8: Nesting Functions

by Eily (Monsignor)
on Jul 19, 2019 at 14:58 UTC ( [id://11103039]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found