I noticed that code like the following
(defprotocol ProtocolToTestMethodArgHints
(method-with-multiple-sigs [this ^long arg1 ^boolean arg2] [this ^boolean arg1 ^boolean arg2 ^boolean arg3]))
(deftype TypeToTestMethodHints []
ProtocolToTestMethodArgHints
(method-with-multiple-sigs [this ^long arg1 ^boolean arg2] arg1)
(method-with-multiple-sigs [this ^boolean arg1 ^boolean arg2 ^boolean arg3] arg2))
would cause the compiler to throw an exception. (Basically because
defprotocol kept the typehints and deftype threw them away.)
I decided to fix it by having deftype keep the typehints. I guess it
would also work if we had defprotocol throw them away.
Which solution is "right"? Discuss! :)
Cheers,
Chris
--
You received this message because you are subscribed to the Google Groups "Clojure Dev" group.
To post to this group, send email to cloju...@googlegroups.com.
To unsubscribe from this group, send email to clojure-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/clojure-dev?hl=en.
Cheers,
Chris