On Sat, April 29, 2006 1:08 am, Paul Novitski wrote: >> IMHO, vertical aligned brackets can be messy when nesting >>relatively-small blocks (and seems to me like a lot of wasted space) > > I'm struggling to get my head around this concept of 'wasted space' > with regard to software code. What is it that's getting wasted, > exactly? If we printed our programs on paper it would be wasted > trees (page-space) but I almost never do this and I don't know anyone > who does except banks. It could be seen as a waste of disk space, > but only at the rate of a few bytes per code block, carriage return > plus perhaps a couple of tabs. What we must be talking about here is > a waste of visual space. How does visual space get wasted? Isn't it > possible to waste something only if it's in finite supply? I guess > it's being wasted if it's something valuable that's not being > used. However, the urge to add whitespace to spread things apart is > done with the intent of making code easier to read, so that seems > like a use, not a waste. If you tend to have a fair amount of code with small blocks, and you can only see X lines on the screen at once, then the wasted space is in how much of the program logic you can view in one screenful. I'll also respond to another poster: I personally have no less/more ease in aligning } with a logic statement or with another {, *IF* the code is indented properly. In other words, the vertical alignment is more a function of the indentation, to me, then of a specific character I have to pick out. If the code isn't indented properly, well, then, the alignment of whatever you do vertically doesn't matter much, eh? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php