Description

compiles just fine, and & is interpreted as a usual argument that happens to be
named & without special meaning. But clearly, the user wanted to specify a
varags parameter here. The same applies to definterface.

This patch is a cut-down variant of my patch to http://dev.clojure.org/jira/browse/CLJ-1024
which has been reverted shortly before Clojure 1.5 was released. The CLJ-1024 patch
was the same as this one, but it has also forbidden destructuring in defprotocol anddefinterface. This was a bit too much, because although destructuring has no
semantic meaning with method declarations, it still can serve a documentation purpose.

Stuart Halloway
added a comment - 29/Mar/13 5:27 AM I think that this patch would be much more helpful to users if it reported the problem form (both name and params).
(And I wonder if we should be using ex-info for all errors going forward.)

Andy Fingerhut
added a comment - 04/Apr/13 7:24 PM Presumuptuously changing Approval from Incomplete back to None, since the reason for marking it Incomplete seems to have been addressed with a new patch.

Andy Fingerhut
added a comment - 25/Oct/13 6:29 PM I have not investigated the reason yet, but patch 0001-Protocol-interface-method-declarations-don-t-allow-f.patch no longer applies cleanly after the latest commits to Clojure master on Oct 25 2013.