Are variadic protocol functions supposed to work?

710 views
Skip to first unread message

Chris

unread,
Feb 9, 2011, 11:10:50 AM2/9/11
to Clojure
There is an old thread from last year about broken variadic functions
defined in a protocol [1]. It ended with a question as to whether it
was ever intended for protocols to support variadic functions, but it
was never answered. I just ran into this issue myself and am curious;
I don't recall seeing it documented anywhere that variadic functions
weren't supported.

Thanks,
Chris

[1] http://groups.google.com/group/clojure/browse_frm/thread/a232a8db6c78d0eb

Stuart Sierra

unread,
Feb 11, 2011, 2:36:55 PM2/11/11
to clo...@googlegroups.com
It is not supported right now, and probably will not ever be supported.  Protocol methods are intended to be a "low-level" mechanism, with higher-level APIs, including variable arity, built out of ordinary functions.

-Stuart Sierra
Reply all
Reply to author
Forward
0 new messages