On Sun, Feb 8, 2009 at 9:24 AM, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 08.02.2009 um 14:31 schrieb Chouser:
>
>> (deferror *foo* [*bar*] "Foo Error" [arg1])
>> (deferror *foo* "Foo Error" [*bar*] [arg1]) ; oops
>
> A question w/o looking at the actual implementation
> code or further thinking about possible issues:
>
> Is there a reason why not to place the docstring
> as in the second example?
>
> All the def*s do it like that:
>
> (defn foo "doc-string" [args] ...)
> (defmacro foo "doc-string" [args] ...)
> (defmulti foo "doc-string" ...)
> (ns foo.bar "doc-string" ...)

In all those examples, the args (if any) are immediately after the
doc-string, and deferror does the same.  It would theoretically be
possible for deferror to provide multiple bodies for different
arities, just like defn, so using the same order makes sense.

--Chouser

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