rubyist icon indicating copy to clipboard operation
rubyist copied to clipboard

missing exceptions editor conventions for rescue/ensure in method body

Open riffraff opened this issue 14 years ago • 0 comments

FWIW, I prefer to use an indent of one when the normal indent is two for a block

def foo
  bar
 rescue
  baz
 ensure
  quux
end

There are some fuzzy reasons for this (such as "a rescue clause is not on the same level as normal code and can be added later") which are pretty arguable, so YMMV, but I think something should be present anyway

riffraff avatar Sep 08 '11 17:09 riffraff