Yup, 2 spaces is the Scala "standard". FP with type inference tends to give more nesting, but less boilerplate. So nested blocks are far shorter and you don't need as much indentation to keep track of where you are, plus you avoid a lot of horizontal scroll when nesting deeply.
I'm also tending to favour 2 spaces when I write Java nowadays, I find it helps distinguish my newer code from the older stuff - which was much more imperative. On 20 May 2011 13:32, Ricky Clarkson <[email protected]> wrote: > I noticed that the IntelliJ IDEA source code uses 2 spaces, and the > code style at Globant for our own projects (as opposed to those for > clients) seems to be 2 spaces too. > > In Scala it seems to be 2 spaces also. > > On Fri, May 20, 2011 at 5:55 AM, Jesper de Jong <[email protected]> wrote: > > 4 spaces seems to be the almost universal standard in Java, so that's > what I > > use in Java. > > In Scala, 2 spaces seems to be the preferred indentation, so that's what > I > > use in Scala. > > > > -- > > You received this message because you are subscribed to the Google Groups > > "The Java Posse" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/javaposse?hl=en. > > > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Kevin Wright gtalk / msn : [email protected] <[email protected]>mail: [email protected] vibe / skype: kev.lee.wright quora: http://www.quora.com/Kevin-Wright twitter: @thecoda "My point today is that, if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger" ~ Dijkstra -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
