Fork me on GitHub
#clojure-spec
<
2017-05-30
>
gardnervickers12:05:45

I have a (s/cat ...) spec form that I am using for parsing a seq with s/conform. I want to make this extensible through a multi-spec. Is there a regex op that can help me here? Perhaps using the dispatch key on the multi-spec to tag conformed values?

misha13:05:56

is it ok to actually rely on order of s/or sub-specs?

don.dwoske16:05:25

@stuartsierra I would love to see the clojure.spec definitions used in your recent article : http://blog.cognitect.com/blog/2017/4/6/developing-the-language-of-the-domain We are going through a very similar process now. Your clojure spec and tools, web app to visually explore the models, et. al. are things I wish I had right now. The business analysts are trying to use Avro specifications to describe the domain model, and are immediately hitting limitations of what can be expressed. I am developing a clojure DSL similar to the one in your article to describe our domain, which I can propose as an alternative. Getting my hands on anything you can share would give me a great jumpstart.

Lambda/Sierra17:05:41

@don.dwoske I'm sorry, I do not have permission to share any of that work beyond the examples in the article.

don.dwoske17:05:10

@stuartsierra Sorry to hear that. I enjoyed the article nonetheless, it gave me some good ideas.

Lambda/Sierra17:05:38

thanks, glad it helped