lua-users home
lua-l archive

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


> About the -- comments, a subtle annoyance is that the standard diff tool
> (with common -u option) uses '-' to mark deleted lines, so deleted Lua
> comments are hard to catch.  Since Lua ended up supporting # on the first
> line anyway, I sometimes wish it just used # completely instead of --.

I agree with this: # is shorter, widely used in other languages, and
doesn't conflict with present Lua syntax. -- is used in some other
languages (e.g. ML, Haskell), but I agree that it's not as nice.

The lack of block comments is also an annoyance, although as pointed
out, [[ ... ]] is almost the same thing: it just creates a string then
throws it away. You can pretty much use [[ .. ]] (it even nests) and
not think twice.

-- 
http://sc3d.org/rrt/ | Travail broadens the behind