From: Trans [mailto:[email protected]]
This is just an guestimation but I think Ruby went 2-space because the
most common keyword that takes a block is only three letters long:
‘def’.
What about ‘class’ or ‘module’? Don’t you indent inside of them?
From: Trans [mailto:[email protected]]
This is just an guestimation but I think Ruby went 2-space because the
most common keyword that takes a block is only three letters long:
‘def’.
What about ‘class’ or ‘module’? Don’t you indent inside of them?
Hi –
On Wed, 15 Nov 2006, Gavin K. wrote:
From: Trans [mailto:[email protected]]
This is just an guestimation but I think Ruby went 2-space because the
most common keyword that takes a block is only three letters long:
‘def’.What about ‘class’ or ‘module’? Don’t you indent inside of them?
I can’t wait for an editor plugin that indents based on the length of
the first word on the previous line… ![]()
David
[email protected] writes:
I can’t wait for an editor plugin that indents based on the length of
the first word on the previous line…
Emacs does that when using text-mode.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs