[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: MoonScript, a language that compiles to Lua
- From: HyperHacker <hyperhacker@...>
- Date: Thu, 11 Aug 2011 21:42:17 -0600
On Thu, Aug 11, 2011 at 21:14, oliver <oliver.schoenborn@gmail.com> wrote:
> On Thu, Aug 11, 2011 at 9:57 PM, Miles Bader <miles@gnu.org> wrote:
>>
>> Steve Litt <slitt@troubleshooters.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:
>> >
>> > http://www.troubleshooters.com/tpromag/199908/index.htm#_readability
>>
>> Indeed, those features are perfect for trivially tiny example programs
>> ... :]
>
> Actually, trivially tiny example programs are the only place that unindented
> code makes sense. Any real code relies on indentation to help coder
> visualize its block structure. So to make indentation a requirement for
> code is "forcing" you to do something you already have to do for anything
> more than trivial programs.
> Good unit testing, naming convensions, logical structure, encapsulation, and
> language tools (syntax highlighting, lint, code formatter, etc) matter way
> more than white space.
>>
>> Gotta wait until all the python programmers are dead I suppose...
>>
>>
>>
>> -miles
>
> This kind of comment is unacceptable on a public forum. Many programmers
> know more than one programming language. Think of that next time you post.
> Oliver
>
Except it forces indentation and structure in cases where it's not
entirely necessary. I like being able to write:
if x then doThings(x) else doThings(y) end
instead of:
if x then
doThings(x)
else
doThings(y)
--
Sent from my toaster.
- 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