Fork me on GitHub
#clojure-spec
<
2021-04-06
>
Aron08:04:40

is "specs are not contextual" the same as "if your spec depends on context, you have more than one specs"?

borkdude09:04:21

@ashnur spec 2 makes selection contextual (e.g. the combination of required keys)

borkdude09:04:01

but the keys themselves are always globally described

Aron09:04:34

not allowed to use spec2 in production yet afaik

borkdude09:04:39

true, for practical purposes it doesn't really exist yet, but this is one of the biggest issues they wanted to address I believe

Aron09:04:30

i am not sure it's the same issue

Aron09:04:01

the same logic goes for selections as well, if your selection depends on the context, isn't it true you have more than one selections?

Aron09:04:14

i am good 🙂

Alex Miller (Clojure team)18:04:54

you don't even have to remove the old one :)

clojure-spin 1
marciol19:04:31

It's a paradigm shift and sometimes takes time to finally get it.

👍 1