Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Perl Contempt in My Workplace

by LanX (Saint)
on May 31, 2021 at 17:49 UTC ( [id://11133333]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl Contempt in My Workplace
in thread Perl Contempt in My Workplace

> variable scope

Python has function scope, I think you mean block scope.

I'd add

  • Lambdas (= Ano. Subs) with more than one expression

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

Replies are listed 'Best First'.
Re^3: Perl Contempt in My Workplace
by QM (Parson) on Jan 14, 2022 at 16:32 UTC
    Python has function scope, I think you mean block scope.

    I literally meant the scope of variables. :D

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

      > the scope of variables. :D

      Python has 4 types of variable scope°

      Block scope like in Perl is none of them, with or without curlies.

      But this doesn't mean that "variable scope" is missing in Python.

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

      °) see also Re^2: Perl Contempt in My Workplace

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found