EDN Schemas?
brandonbloom opened this issue · comments
Considering EDN is a simpler XML, can we also get a simpler XSD?
David Nolen and I were discussing the potential for formalizing the ClojureScript AST. My first thought was that I wish I had an AST validator, like the ASTValidator.java in Google Closure. My next thought was "I'm sure core.logic could make this very easy". I typed not more than two sentences of notes on this topic before I thought: This smells an awful lot like XML Schemas...
👍
Would Prismatic's schema suffice?
https://github.com/prismatic/schema
@Chouser thanks!
@Chouser Funny timing. David just brought this topic back up today in IRC.
Prismatic's schema probably covers this for many folks, but it's probably not the right fit for the ClojureScript compiler's needs for a variety of reasons not worth going in to here.
@brandonbloom Off-topic: I use fipp every day. ❤️ 🍻
Schemas out of scope for now.
Now that we've got a simpler XML and a simpler XSD, can we get a simpler XPath? ;) Thanks much for the work on this and clojure.spec!
@brandonbloom Pardon my ignorance, but what is the simpler XSD you're referring to?
I guess you can call spec a simpler XSD; I think I was just taking you too literally.