lua-users home
lua-l archive

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


On 22.07.2011 02:10, David Manura wrote:

> I also commonly do things like
> 
> for k=1, 10 do
> for j=1, 10 do
> for i=1, 10 do
>   f(i, j, k)
> end end end

IMHO that is the only "clean" solution. You try to "fix" the way your
code looks like without changing the parser (both lua parser and text
editor parser). In fact, such kind of "compressions" could be built into
some text editors for those who need it (and would work for any language
- except python of course).

> Replacing `end end end` with `ennnd` or (preferably) `end3` is not
> going to gain much.

It would be sad to complicate the parser just to "fix" the look of a
source code.

Regards,
	miko