I think clojure is a little torn between functional thinking and oo
thinking - java vs haskell (i must admit that I am not originally a
lisper, more of a java and functional guy)

Functional / haskell style is what you see in map. that collection is
at the end. The preceding arguments are like parameters for the
function, suited for partial invocations

map f coll
take 10 coll

java (or maybe oo) style is to think abvout the object as the first
parameter

conj coll e
nth coll 10

I think it is not so intuitive.... If the function exist in the
functional world (reduce filter map cons..) then the collection is at
the end, otherwise it tends to be the first parameter.

But, of course, if the function has a variable length argument list,
that must be at the end


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