I think there are also several ways of identing clojure code, depending on
what the tools provide out-of-the-box, and of devs personal preferences:

 * do you see a reindenter like something that will just correctly change
the number of beginning spaces of each line, or also something that could
reformat the whole line as well (removing extra spaces, ...)
 * which algorithm for the identation ?
   a. totally predictive by following rules not dependent upon a special
(subject to be update from IDE to IDE and clojure version to clojure version
and project specificity to project specificity) "syntax symbols list"
   b. stable across relaunch if the list mentioned above did not change
   c. unpredictive but more accurate by completing the list with information
available e.g. from a connection of the IDE with a live REPL ?

For cross-IDE and cross-clojure versions of projets, I guess I would prefer
a., but maybe it's too "strict" ?



2010/2/3 CuppoJava <patrickli_2...@hotmail.com>

> As trivial as it seems, proper indentation was also my most
> significant hurdle when learning Clojure. I finally was only able to
> "get" s-exps after realizing:
>
>  1. That indentation is *extremely* important.
>  2. That it's not straightforward ( relative to C-languages ).
>  3. You're not expected to easily indent code manually.
>
> After realizing those things, spending a couple of minutes to figure
> out auto-indentation was all it took to overcome that hurdle.
>  -Patrick
>
> --
> 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<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
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

Reply via email to