bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16182: Acknowledgement (24.3.50; ruby-mode: Indentation style of mul


From: Steve Purcell
Subject: bug#16182: Acknowledgement (24.3.50; ruby-mode: Indentation style of multiline literals with hanging open paren inside other parens)
Date: Sat, 21 Dec 2013 16:49:03 +0000

On 21 Dec 2013, at 15:53, Dmitry Gutov <dgutov@yandex.ru> wrote:

> But this style or all over the Rails codebase. And, personally, I quite like 
> this usage of `begin' (basically, one of Adam's examples):
> 
> a ||= begin
>  perform_long_lookup
> end
> 
> Indenting `if' and friends similarly might be good for consistency, at least.
> 
> (Again, this example is indented differently by default in ruby-mode.)


For some reason, that example doesn’t look quite as ugly to me. Any “rescue” 
clause would presumably be aligned to match the “end”.

Obviously my tastes are not self-consistent.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]