你好
我想在不定义协议的情况下创建record的方法
(defprotocol ComponentProtocol
(view [x])
(render [x]))
(defrecord Component [...])
ComponentProtocol
(view [x] ...)
(render[x] ...))
==> 而是按照下面的方式定义record
(defrecord Component [...])
(view [x] ...)
(render [x] ...))
谢谢
-Taoufik