2
내가 할 시도했다. 그것은 deftype 함수가 매개 변수에 대한 힌트를 받아들이지 않을 수 있다는 것을 의미합니까?deftype에서 함수의 매개 변수 유형을 힌트를 표시 할 수 있습니까? <pre><code>(defprotocol TestP (fun [this ^int i])) (deftype Test [] TestP (fun [this ^int i] i)) </code></pre> <p>그러나, 컴파일이 실패하고 <code>Can't find matching method: fun</code>을 말한다</p> :
참고하시기 바랍니다. 정적으로 타입이 지정된 Java 인터페이스를 원하면'definterface'를 사용할 수 있습니다. http://stackoverflow.com/questions/7770282/difference-between-definterface-and-defprotocol-in-clojure – tnoda
대단히 감사합니다 tnoda, 너의 것이 실제로 내가 찾고 있던 해답이다. –