lua-users home
lua-l archive

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


> The headaches begin when I have an "old" (maybe 5 years) 1kLOC script or, worse still, a 1kLOC+ library module where I put some "clever" algorithm which once in a while needs some polishing or fixing (in the last couple of years I did very little Lua coding, although I run Lua scripts almost daily, since I have automated many common tasks using scripts).
> 
> -- Lorenzo

Many editors nowadays show the scope in colors.
(Some can even collapse code chucks)

I would not bother with end scope comment.
Comment may go stale (when fixing code), which make it worse.

Proper indentation is much more important.
Example, Python does not even have the 'end' keyword.