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: Bernd Eggink
Subject: Re: add a way to declare global variables
Date: Mon, 14 Dec 2009 14:34:41 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4

Am 12/14/09 13:37, schrieb Marc Herbert:
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.

I don't blame anybody. I'm talking about the fact that associative arrays are an exception from "what most people expect from dynamic languages", as they _have_ to be explicitly declared. This doesn't bother me, but I would prefer to have a choice between local and global declaration anyway.

--
Bernd Eggink
http://sudrala.de




reply via email to

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