Clojure - How to check if type hints in protocols are correct?
-
30-10-2019 - |
سؤال
How to check if I the type hints I have put to my code are correct?
It seems like even if I put wrong type hints it works without any warnings:
=> (defprotocol Qqq (^Qwerty qqq [this ^String q]))
Qqq
=> (qqq (reify Qqq (qqq [this q] (+ q 5))) 7)
12
لا يوجد حل صحيح
لا تنتمي إلى StackOverflow