News for hackers. Stuff that matters.
Re:C-style vs. Python-style syntax: which one would you pref... by jcromartie on Sunday December 14, 2008 @04:50PM (#397686)
Lua actually has a very odd syntax in that statements don't have to be separated by any particular whitespace.

    x = 1
    y = 2
and

    x = 1; y = 2
and

    x = 1 y = 2
are all equivalent.

I actually don't mind this. I've never encountered a situation where this style makes the meaning of the code undecidable.

Re:C-style vs. Python-style syntax: which one would you pref... by silentbicycle on Sunday December 14, 2008 @05:15PM (#397703)
The main Lua book points out that such code is "ugly, but valid", and leaves it at that. It seems to me that "x, y = 1, 2" would be cleaner, if someone were determined to make it a one-liner.