
7: Ben Brinckerhoff on Clojure Spec and Error Messages
The REPL
00:00
Expound - Is There a Metadata Option?
In expound, there's actually a namespace that redefines slightly more clear error messages for a bunch of types like string. So you can include that and if thatnamespace gets included, you'll suddenly go fromerror messages that say something about should satisfy string question mark to should be a string. I've toyed with the idea of maybe allowing people to potentially register a callback there where you could provide a function that would take the data and sort of generatively generate that string. But I did it and then I didn't really hear a lot of demand for it. so I've kind of been paused and waiting to see if it's actually useful or because it does add a little complexity
Transcript
Play full episode