|
From: | Dmitry Gutov |
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 17:53:59 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 21.12.2013 17:38, Steve Purcell wrote:
I wouldn’t personally consider as reasonable *any* scheme which placed related “if”, “else” and “end” keywords at differing levels of indentation.
You're not the target audience, then. :) Not to worry, this won't be the default.
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 endIndenting `if' and friends similarly might be good for consistency, at least.
(Again, this example is indented differently by default in ruby-mode.)
[Prev in Thread] | Current Thread | [Next in Thread] |