On 23 August 2015 at 15:17, Dave Tenny <dave.te...@gmail.com> wrote: > The point of my colorful title and judgmental post is that in the example, > passing :e for the declared parameters as declared is a pointless operation > at best, and in most practical situations it is also an erroneous > operation. > > The language designers have (arguably for the good) chosen to complain > about various actual argument mismatches vs. formal parameters. >
Clojure uses destructuring to handle keyword arguments. If we want destructuring keyword arguments to behave differently to destructuring a map, then we make the language less consistent. Ideally there would be a separate syntax for keyword arguments. In general Clojure doesn't have great support for keyword arguments. They're supported by destructuring, but they don't work with apply, and as you've discovered, don't throw exceptions when you get the keys wrong. - James -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.