[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Compress a sequence of ends
- From: Rob Hoelz <rob@...>
- Date: Wed, 20 Jul 2011 13:13:04 -0500
To quote the Linux kernel coding style guide:
"...The answer to that is that if you need
more than 3 levels of indentation, you're screwed anyway, and should fix
your program."
Now, I feel like 3 levels as a minimum may be a bit extreme, but I
agree with the general idea: if you've got too many levels of
indentation, you've got room for improvement. The same principle
applies to Lua, in my opinion. It's a little harder for Ruby, though,
with module+class+def...
-Rob
On Thu, 21 Jul 2011 02:02:06 +0800
Johnson Lin <arch.jslin@gmail.com> wrote:
> Actually this discussion comes from:
> http://redmine.ruby-lang.org/issues/5054
>
> annnnnnnnnd I think it's fun to talk about :p What do Lua
> programmers say?
>
> --
> Johnson Lin
>
Attachment:
signature.asc
Description: PGP signature