[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: MoonScript, a language that compiles to Lua
- From: Miles Bader <miles@...>
- Date: Fri, 12 Aug 2011 18:39:50 +0900
oliver <oliver.schoenborn@gmail.com> writes:
>> > I'm a Lua guy, but I prefer locals by default and grouping by
>> > indentation, if I had my druthers (which of course I never will).
>> > Here's why I prefer grouping by indentation:
>>
>> Indeed, those features are perfect for trivially tiny example
>> programs ... :]
>
> Actually, trivially tiny example programs are the only place that
> unindented code makes sense.
Sure, but my point has nothing to do with "unindented code" though.
My point is that using explicit delimiters _as well_ as good
indentation helps readability in real code. Indentation is obviously
important, but it's really not sufficient. Some redundancy is _good_.
[I do think it's nice to have a way of avoiding end-delimiters for
"very short" blocks -- one-liners and the like]
-Miles
--
Accordion, n. An instrument in harmony with the sentiments of an assassin.
- References:
- MoonScript, a language that compiles to Lua, leaf corcoran
- Re: MoonScript, a language that compiles to Lua, steve donovan
- Re: MoonScript, a language that compiles to Lua, Miles Bader
- Re: MoonScript, a language that compiles to Lua, Steve Litt
- Re: MoonScript, a language that compiles to Lua, Miles Bader
- Re: MoonScript, a language that compiles to Lua, oliver