clojure-spec

Ludger Solbach 2025-09-20T10:40:32.805479Z

how do I specify a protocol implementation? (s/def ::quantum-backend (satisfies? QuantumBackend)) leads to an arity error: Wrong number of args (1) passed to: clojure.core/satisfies?

Alex Miller (Clojure team) 2025-09-20T12:02:15.818359Z

That should be a function

Alex Miller (Clojure team) 2025-09-20T12:03:16.771929Z

(s/def ::quantum-backend #(satisfies? QuantumBackend %))

👍 1