Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-28 Thread Meikel Brandmeyer
Hi, On Oct 28, 7:56 am, John Harrop wrote: > That was correct. I just wanted to avoid any confusion between the #() read > macro and anonymous functions; the read macro is one way of writing an > anonymous function but it is not the only way so the two aren't quite > interchangeable. #() is in

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread John Harrop
On Tue, Oct 27, 2009 at 2:33 PM, Emeka wrote: > John, > > That is why I asked that question because I figured out that the problem > has nothing to do with Vector but with #() read macro. I wanted to correct > the impression that the problem was from Vector. That was correct. I just wanted to a

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
John, That is why I asked that question because I figured out that the problem has nothing to do with Vector but with #() read macro. I wanted to correct the impression that the problem was from Vector. Regards, Emeka --~--~-~--~~~---~--~~ You received this messag

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread John Harrop
On Tue, Oct 27, 2009 at 2:17 PM, Emeka wrote: > John, > On Tue, Oct 27, 2009 at 6:10 PM, John Harrop wrote: > >> On Tue, Oct 27, 2009 at 1:39 PM, Emeka wrote: >> >>> On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson >>> wrote: >>> Hello, Someone recently posed the question: (why

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
John, On Tue, Oct 27, 2009 at 6:10 PM, John Harrop wrote: > On Tue, Oct 27, 2009 at 1:39 PM, Emeka wrote: > >> On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson >> wrote: >> >>> >>> Hello, >>> >>> Someone recently posed the question: (why doesn't this work) >>> (into {} (map #([% (* % %)]) [1 2 3 4

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread John Harrop
On Tue, Oct 27, 2009 at 1:39 PM, Emeka wrote: > On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson wrote: > >> >> Hello, >> >> Someone recently posed the question: (why doesn't this work) >> (into {} (map #([% (* % %)]) [1 2 3 4])) >> >> > Is this actually a Vector problem or the limitation of the anon

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-27 Thread Emeka
On Sun, Oct 25, 2009 at 4:57 PM, MarkSwanson wrote: > > Hello, > > Someone recently posed the question: (why doesn't this work) > (into {} (map #([% (* % %)]) [1 2 3 4])) > > Is this actually a Vector problem or the limitation of the anonymous function? Regards, Emeka > (reference: > http://gro

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-26 Thread MarkSwanson
Thanks for the link. I read somewhere that Rich asked folks to vet stuff on this Google Group first, so that's why I posted it here. I previously posted a "patch" to Clojure here and Rich applied it. I didn't have to do the CA, and if posting my patches into the public domain works - then please

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-26 Thread John Harrop
On Mon, Oct 26, 2009 at 1:55 PM, Jason Wolfe wrote: > Hi Mark, > > Thanks for the patch! Have you seen this page? > > http://clojure.org/contributing > > You should follow the instructions there to get your patch included. > In particular, that page tells you where to post it, and has other > de

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-26 Thread Jason Wolfe
Hi Mark, Thanks for the patch! Have you seen this page? http://clojure.org/contributing You should follow the instructions there to get your patch included. In particular, that page tells you where to post it, and has other details; for instance, you must send a CA to Rich before any code you

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-26 Thread MarkSwanson
This seems like an even better place to post it: http://paste.lisp.org/display/89307 --~--~-~--~~~---~--~~ 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 Not

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-25 Thread Patrick Steiger
+1. I find Clojure error messages a little bit cryptic, and this is a nice effort to change this. 2009/10/25 MarkSwanson > > Hello, > > Someone recently posed the question: (why doesn't this work) > (into {} (map #([% (* % %)]) [1 2 3 4])) > > (reference: > http://groups.google.com/group/clojure

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-25 Thread MarkSwanson
Ok, I see now I should not post patches here because it messes up the formatting. I can't seem to find an option to paste text. I've placed the patch here: http://www.scheduleworld.com/sw2/arity.patch.gz --~--~-~--~~~---~--~~ You received this message because yo

Re: PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-25 Thread eyeris
+1, This would have helped me a lot when I first came to Clojure (from a non-lisp background). On Oct 25, 11:57 am, MarkSwanson wrote: > Hello, > > Someone recently posed the question: (why doesn't this work) > (into {} (map #([% (* % %)]) [1 2 3 4])) > > (reference:http://groups.google.com/gro

PATCH: AFn.java, RestFN.java (a better throwArity message)

2009-10-25 Thread MarkSwanson
Hello, Someone recently posed the question: (why doesn't this work) (into {} (map #([% (* % %)]) [1 2 3 4])) (reference: http://groups.google.com/group/clojure/browse_thread/thread/7d3ee57ee8041353) The error message was: Caused by: java.lang.IllegalArgumentException: Wrong number of args pass