Re: ruby indentantion

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… :slight_smile:

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… :slight_smile:

Emacs does that when using text-mode.