News for hackers. Stuff that matters.
Re:Clojure Error Messages Are Accidental by al2o3cr on Friday June 29, 2018 @07:57AM (#17423953)
> But if the official spec doesn’t restrict get, Spec will let people redefine the spec for get for themselves.

> They can choose whatever subset of the type they want.

Total clojure-spec noob question: is this type scoped somehow, or does using your own type mean chasing down bugs in libraries that assume a looser version?

Re:Clojure Error Messages Are Accidental by ajss on Friday June 29, 2018 @10:43AM (#17424788)
Specs are not scoped. There's a global registry. You may end up chasing other people's bugs.
Re:Clojure Error Messages Are Accidental by puredanger on Saturday June 30, 2018 @10:02AM (#17430890)
It's scoped in that you choose what gets loaded. I think it's generally a good idea for a library to provide specs as an optional namespace and let you choose whether and when to load it.