> Think about it for a moment. What should  ((+ 2) 1)  return? A
> function with the next elment add on to it? So it would return a
> function that adds 3 to its args or the result? How can you know what
> the caller wants?

That's a very good point which I hadn't considered.

Perhaps the evaluation result could depend on the context?

E.g.
(def add-2 (partial + 2))
(def add-3 (add-2 1))

Then, hopefully:
(add-3 3) ; 6
(add-3); 3

U

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