Welcome! Please see the About page for a little more info on how this works.

0 votes
in Compiler by

When a method defined by a protocol has multiple typehinted signatures, it is impossible to implement them using deftype because deftype throws away the typehints. The compiler then looks for the proper signatures (i.e. with typehints) and throws an exception when it can't find them.

3 Answers

0 votes
by

Comment made by: chrismgray

Clojure-dev discussion started here: http://groups.google.com/group/clojure-dev/browse_thread/thread/1f106a21ec1ce3de

0 votes
by

Comment made by: jafingerhut

Patch clj-957-allow-typehinting-of-method-signatures-in-deftype-patch2.txt dated Aug 19 2012 is identical to Chris Gray's patch 0001-Allow-for-typehinting-of-method-signatures-in-deftyp.patch dated Mar 22, 2012, except it has some updated context lines so that it applies cleanly to latest master.

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-957 (reported by chrismgray)
...