Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!execu!sequoia!rpp386!woody From: woody@rpp386.cactus.org (Woodrow Baker) Newsgroups: comp.lang.postscript Subject: Re: indentation style Summary: I don't either Message-ID: <17890@rpp386.cactus.org> Date: 9 Feb 90 02:10:55 GMT References: <17807@rpp386.cactus.org> <9002040147.AA16999@en.ecn.purdue.edu> <7941@lindy.Stanford.EDU> Organization: River Parishes Programming, Plano, TX Lines: 47 In article <7941@lindy.Stanford.EDU>, ralerche@lindy.Stanford.EDU (Robert A. Lerche) writes: > Might I suggest... > > /name > { line 1 > line 2 > etc... > } def > > Similarly... > > condition > { line 1 of true > ... > } > { line 1 of false > ... > } ifelse > > etc. This style (braces lined up with each other and outside indentation) > is nice for C, too... > > if (condition) > { line 1 true ; > line 2 true ; > } > else > { line 1 false ; > line 2 false ; > } > > I never will understand the attraction of braces that don't line up with > each other. I never will either, but I also don't understand the attraction for braces that aaren't indented within thier controlling code. Lining them up as the above example, is lots better than not lining them up, but they really should be indented for ease of reading. The normal reading pattern is from left to right, not down the page. By indenting the braces, you are moveing left to right, so it is easier to track. You also move down the page as well, but there is the normal, and natural (western) movement from left to right. I'd imagine that certain Oriental languages that read from top to bottom, would tend to encourage vertical braces as in the above example. Cheers Woody s