From: "David A. Black" Date: 2004-10-21T11:39:58+09:00 Subject: Re: nested modules and editor Hi -- On Wed, 20 Oct 2004, David Garamond wrote: > Since I don't like code in nested modules to be indented so deeply, I > tend to do this: > > module Foo; module Bar; module Baz; end end end > > module Foo::Bar::Baz > ... # only 1 level indented > end > > I was wondering how people that prefer > > module Foo > module Bar > module Baz > ... > end > end > end > > write their code, especially with auto-indenting editor, like emacs + > ruby-mode. Do you just let the editor indent it deeply or do you resist > the indentation and reverse what the editor does for you? Or, do you > tend to avoid nested modules because of this? I just let the editor indent it deeply. I don't think I've ever gone more than three levels deep, and at two spaces per level, it seems to be OK. David -- David A. Black dblack@wobblini.net