Can Clojure Spec be used to constrain protocol argument and return types?

Viewed 73
1 Answers

AFAIK protocols generate host interfaces, and since those don't support the "dependent type like" constraints you can express in spec, I think you can't do this (though it does sound like a very nice idea!).

Related