[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Long Verbose Variable Names
- From: Gavin Wraith <gavin@...>
- Date: Tue, 12 Sep 2006 12:21:53 +0100
The expression t[#t+1] does become clumsy when
t is replaced by LongVerboseVariableName. However,
I hope I am not spoiling the fun of syntactic
neology if I point out that Lua is really strong
on controlling scope and that using local variables
is to be recommended. So what is wrong with
do
local t, x = LongVerboseVariableName, pushme_in_please
t[#t+1] = x
end -- do
?
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/