bug-bash
[Top][All Lists]
Advanced

[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>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]