On Fri, Jun 17, 2011 at 10:17 AM, Mark Rathwell <mark.rathw...@gmail.com> wrote: > > In Java, varargs are actually converted to arrays at compile time. It is > really just some syntactic sugar allowing you to use nicer syntax for array > arguments, and you can pass the arguments as an array, or as a comma > delimited sequence of arguments.
Right, but the problem is when you pass just one thing (or nothing). It may get converted, but the syntax of the call declares loudly "I am NOT passing an array". Atrocious language design, IMO, and it cost me several frustrating and wasted hours. A minor point but good for a cheat sheet. -Gregg -- 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