Re: :arglists question

2011-12-29 Thread Sean Corfield
On Thu, Dec 29, 2011 at 11:27 AM, vitalyper wrote: > My question is why do we have BOTH :arglists metadata and usual fn > args destructuring? As Meikel surmised, it's to improve the docstring (shown by the doc function). We (the CongoMongo team) have not been terribly consistent about it tho' :(

Re: :arglists question

2011-12-29 Thread Meikel Brandmeyer
Hi, Am 29.12.2011 um 20:27 schrieb vitalyper: > My question is why do we have BOTH :arglists metadata and usual fn > args destructuring? Probably to make things a bit clearer in the docstring. The usual destructuring is powerful but rather unreadable for a quick glance at the reference. Similar

:arglists question

2011-12-29 Thread vitalyper
Came across the following in one of the clojure libs (congomongo to be exact) https://github.com/aboekhoff/congomongo/blob/master/src/somnium/congomongo.clj:464 (defn command "Executes a database command." {:arglists '([cmd {:options nil :from :clojure :to :clojure}])} [cmd & {:keys [options