Fork me on GitHub
#unrepl
<
2019-05-23
>
Andrea15:05:20

hello UnRepliants, I’d have a question about unrepl.printer/datafiable? Is it possible that the function will only detect if a type implements clojure.core.protocols/Datafiable at the time of repl upgrade (i.e. when unrepl.printer ns is loaded) ?

Andrea15:05:32

https://github.com/Unrepl/unrepl/blob/111b729e2cb49c81149f5eb9fb4a27f70b875a3d/src/unrepl/printer.clj#L36-L39 I mean. If I extend the protocol with some type implementation after I upgrade to unrepl the function will return false

cgrand16:05:27

good catch

cgrand16:05:03

the value is captured at deftime

Andrea16:05:40

calling really-implements? at runtime against a fresh Datafiable could work…