On Fri, Oct 15, 2010 at 04:13, David Jacobs <develo...@allthingsprogress.com> wrote: > I've just started learning Clojure and I'm excited about what I see. The > combination of power and sophistication in the language is refreshing, and > I've started to dive into the source code to understand it better. > > One meta-observation has come out of my scouring. > > The indentation used for the part of Clojure that's written in Clojure is > beautifully indented, well documented, and generally easy to work through. On > the other hand, the Java source doesn't look so consistent, either internally > or with standard practices--especially as regards whitespace, indentation, > and braces. > > It may seem like a small thing, but I think that having well-formatted, > consistent source code is important. > > Would there be any objection to reformatting the Java source to make it > consistent? I wouldn't mind undertaking that project in my free time. > > Thoughts? > > David
Yea, it's an oddball: Method headers tend to be in sun style, with the opening brace at the end of the line. control structures (method bodies) tend to be in whitesmith style [1]. Indentation is mostly with hard tabs. Since there are some spaces mixed in there occasionally, things can look a little drunken when you don't have tab size set to that of the author. Oh, and methods and nested classes of the top-level class are outdented to column zero. So, in total, it looks pretty unsettling at first if you're used to more conventional formatting. [1] http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style But, one can get used to almost anything. It doesn't bother me much anymore. If that's how Rich likes it, who am I to argue? // Ben -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en