Is the Clojure compiler meant to check if a record or type that says it instantiates a protocol actually implements the methods listed in it?
I'm trying this out now and so far, it doesn't seem to.
Is the Clojure compiler meant to check if a record or type that says it instantiates a protocol actually implements the methods listed in it?
I'm trying this out now and so far, it doesn't seem to.
A record can implement a protocol without implementing any of its methods:
... is accepted.
If you try to use a non-existent method:
As usual, type errors are found at run time.