Marcin 'Qrczak' Kowalczyk writes:
 > BTW, as we are talking about the "do" syntax... Some people some time
 > ago pointed out that it would be nice to permit the following in the
 > layout rules:
 >     do
 >         ...
 >         if condition then do
 >             actions1
 >         else do
 >             actions2
 > i.e. that a line beginning with "else" at the current layout level
 > counted as indented more. It looks better than
 >     do
 >         ...
 >         if condition
 >             then do
 >                 actions1
 >             else do
 >                 actions2

That is a matter of taste.

To me, the second form looks better. The first form is only preferable because
it avoids the problem with deeply-nested expressions heading towards the right
margin.

-- 
Frank Atanassow, Dept. of Computer Science, Utrecht University
Padualaan 14, PO Box 80.089, 3508 TB Utrecht, Netherlands
Tel +31 (030) 253-1012, Fax +31 (030) 251-3791


Reply via email to