unrepl

discussing specification of an edn-based repl and its implementations.
Andrea 2019-05-23T15:57:20.003200Z

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) ?

Andrea 2019-05-23T15:59:32.005Z

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

cgrand 2019-05-23T16:00:27.005600Z

good catch

cgrand 2019-05-23T16:01:03.006300Z

the value is captured at deftime

Andrea 2019-05-23T16:01:17.006500Z

right

Andrea 2019-05-23T16:01:40.006900Z

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

2019-05-23T16:45:07.007100Z

2019-05-23T19:59:02.007500Z

2019-05-23T19:59:02.007600Z