lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jul 12, 2010 at 10:01 AM, Jim Jennings
<jennings.durham.nc+lua@gmail.com> wrote:
> HyperHacker <hyperhacker@gmail.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.

[1] http://lua-users.org/lists/lua-l/2008-08/msg00092.html
[2] http://lua-users.org/lists/lua-l/2008-06/msg00361.html
[3] http://loop.luaforge.net/release/preload.html