[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A tiny matter of style
- From: Albert Chan <albertmcchan@...>
- Date: Wed, 9 May 2018 17:59:37 -0400
> 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.