From: "Florian Groß" Date: 2005-05-28T06:48:43+09:00 Subject: Re: [FYKA] Plz comment Dr Balwinder S Dheeman wrote: > 1.1.1) as per matz: > > begin > expr.. > [rescue [error_type,..] > expr..].. > [else > expr..] > [ensure > expr..] > end This one. > 2.2.2) but I also like: > > case expr > [when expr [, expr]...[then] > expr..].. > [else > expr..] > end And this one. Reasons are that I think that it is a bad idea to use multiple different indentation levels when there is no nesting going on. While you could decide to align the case with the when and else in the last one I feel that it stands out better this way without obfuscating start or end. With this you can also do this: speed = case direction when :left then -5 else +5 end But having options is a good choice for restyling tools.