Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: Blocks for scope control Date: Sun, 15 Jan 2012 09:57:50 -0800 Organization: A noiseless patient Spider Lines: 37 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 15 Jan 2012 17:57:53 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="31890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192RiFI1ehBkjK+cu0BNa638V13Z841bi0=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: Cancel-Lock: sha1:11sGHefm6DdKuEq201PEm3PtjKo= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:11353 On 1/15/2012 7:50 AM, Arved Sandstrom wrote: > I almost never see anyone else using these things this way. IMO, I dislike spurious and overused indentation in code, so that's likely why I shy away from "extra" use of braces. for( ...some code ) { do some init { do a little work { declare a temporary variable } { declare another temporary variable } { declare yet another temporary variable } { declare still yet another temporary variable { declare a temporary variable inside an anonymous block } } } } vs. just one level of indentation, I believe I'd greatly prefer the latter, especially in the long run. And the above is with 3-4 spaces for indenting, imagine what it would look like with 8.