[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: add a way to declare global variables
From: |
Marc Herbert |
Subject: |
Re: add a way to declare global variables |
Date: |
Mon, 14 Dec 2009 12:37:31 +0000 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090320) |
Bernd Eggink a écrit :
> To avoid misunderstandings, let me add that you are right (only) with
> respect to variables being used _without_ declaration.
OK, but not having to explicitly "declare" variables is a feature that
most people expect from dynamic languages, so you can hardly blame them
for doing this all the time in shell.
IMHO Python gets this global/local (implicit) declaration story
right. Of course it is easier when you do not have 30 years of POSIX
legacy to support (but just the experience).
<http://docs.python.org/tutorial/controlflow.html#defining-functions>
Message not available
Re: add a way to declare global variables, Bernd Eggink, 2009/12/12
Message not available