Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Wojtek Newsgroups: comp.lang.java.programmer Subject: Re: Indentation styles Date: Tue, 07 May 2013 13:35:23 -0700 Organization: A noiseless patient Spider Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: mx05.eternal-september.org; posting-host="96cb79d4e9996f0118fe420f36ddf6f0"; logging-data="18705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k72JFHGin5mF1amYQdHykSZEQdHkvFZY=" X-Newsreader: MesNews/1.08.03.00-gb Cancel-Lock: sha1:DUXph8v4wflTGYHfP8ixqCSQJBI= Xref: csiph.com comp.lang.java.programmer:23903 lipska the kat wrote : > On 07/05/13 17:11, Stefan Ram wrote: >> Daniele Futtorovic writes: >>> ... and subsequently decided that I didn't want to bar() after all, >> > > >> ... What I do /not/ like that much is: >> >> void alpha() { >> beta(); >> gamma(); ... >> > > Ah, my favorite style, I can't see why anyone would want or > need anything else. I've been known to reformat code with a particularly > irritating bracketing style but life is too short so generally now I try to > live with it. But really ... > > void alpha() { > beta(); > gamma(); > } > > Is a thing of beauty and a joy to behold, it's all you need :-) Hmmm, I prefer my braces on their own line. In your style I am forever chasing my eye around the screen trying to find out if there is a brace, whereas a brace on a separate line stands out. YMMV but IMHO it is a faster way to read code. -- Wojtek :-)