[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why are people so afraid of globals?
- From: David Manura <dm.lua@...>
- Date: Mon, 12 Jul 2010 22:05:42 -0400
On Mon, Jul 12, 2010 at 10:01 AM, Jim Jennings
> HyperHacker <email@example.com> wrote:
>> I think rules like "only if you used the keyword before" or "only
>> within a function" are going to make things more confusing
> I strongly agree. Orthogonality permits composability, and
> composability has great value in a programming environment (language,
> libraries, run-time). After all, programming itself is the act of
> composing little statements and expressions into bigger pieces. The
> best of the bigger pieces are likewise composable.
Note: Lua files are sometimes composed [1-3] into a single file. This
can be incompatible with such keyword effects unless such effects are
themselves lexically scoped.