On 18/10/12 17:37, Brian Craft wrote:
It's not just you. I'm also surprised at the amount of syntax and the number of ways of doing some things. I suspect that if you come from java or C++ it seems like a simple language, but it feels pretty cluttered compared to other languages. The '->' macro, for example. I've learned to read right-to-left in scheme, but with the -> macro we now have to read both right-to-left and left-to-right in the same program. I'm not sure that's an improvement in readability.

If the threading macros are a source of confusion for you then you can always choose not to use them...tbh i get a bit annoyed as well when people sue ->/->> for not so nested expressions (e.g a single chaining). However, I've found that when you want to chain more than say 3-4 forms it greatly improves readability. You can literally read the thing as a sentence. The same with 'doto' regardless of the fact that it returns the object rather than the result of last form...

Jim

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