You may overwrite the default IPrintWriter by doing calling extend-type
after the defrecord.
But CLJS should probably allow the protocol in defrecord itself instead of
forcing the default. Not sure if there is an open issue for it.
On Friday, November 11, 2016 at 9:29:25 PM UTC+1, William la Fo
To answer my own question, it is because IPrintWithWriter is already
defined for records. Only define this with deftype.
On Friday, November 11, 2016 at 3:16:46 PM UTC-5, William la Forge wrote:
>
> WARNING: Protocol IPrintWithWriter implemented multiple times at line 9
> src\simpleArk\rolonReco
WARNING: Protocol IPrintWithWriter implemented multiple times at line 9
src\simpleArk\rolonRecord.cljc
Any ideas?
(ns simpleArk.rolonRecord)
#?(:clj
(defrecord Rolon-record [rolon-uuid])
:cljs
(defrecord Rolon-record [rolon-uuid] ;;this is line 9
IPrintWithWriter