On Sun, Aug 9, 2009 at 12:47 PM, Lauri Pesonen <lauri.peso...@iki.fi> wrote:
> > 2009/8/8 Luc Prefontaine <lprefonta...@softaddicts.ca>: > > > I totally agree no comments is not good at all but JavaDoc style comments > in > > Clojure ? I pray you all, please stay away of it :)))) > > I was quite taken by this scheme style guide recently: > > http://mumble.net/~campbell/scheme/style.txt > > While I don't agree with all the points in it, and some advice is not > Clojure compatible (e.g. "do not use square brackets" and the > CL-specific block comments), I think that the guide gave me a to think > about. It would be nice if Enclojure's auto-indent implemented the style guide (with suitable Clojure modificagtions). The current indent behavior for vectors, sets, and maps is appropriate. The current indent behavior for lists is just to indent two levels deeper for every unclosed open parenthesis. Better might be to indent two levels deeper for (oper foo bar & body) where oper is either a special form with body code as the last parameter or a macro with an & foo final parameter; but for unquoted (foo bar baz) align with the first operand, or with the operator if the first operand is not on the same line as the operator, and for quoted '(foo bar baz) similar to [], {}, and #{} because it's data rather than an operator and operands. Backquote expressions should be indented as if unquoted though, because they are probably code to be output by a macro (or, less commonly, fed to eval): `(foo bar ~baz) I suppose I should join the enclojure google group, if there is one, and cross-post this to it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---