From: Austin Ziegler Date: 2005-05-28T00:06:39+09:00 Subject: Re: [FYKA] Plz comment On 5/27/05, Dr Balwinder S Dheeman wrote: > Hence, I'm looking forward to your valuable ideas on how do I format the > following code structures: > 1) *begin* > 1.1.1) as per matz: > > begin > expr.. > [rescue [error_type,..] > expr..].. > [else > expr..] > [ensure > expr..] > end I prefer this, because the rescue, else, and ensure clauses belong to the begin/end block and are not subordinate to it. The expressions for those clauses are subordinate, but the clauses themselves are not. I think that matz has these correct. > 2.1.1) as per matz: > > case expr > [when expr [, expr]...[then] > expr..].. > [else > expr..] > end See above. You can make this configurable, but the defaults should follow Matz's style as much as is possible. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca