Schema for Clojure(Script) Data Shape Declaration and Validation
blog.getprismatic.com
Schema for Clojure(Script) Data Shape Declaration and Validation
1–10 of 58 posts
Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#2Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#3Author here. Happy to answer any questions or comments.
I would have thought that this would be extremly hard to automate for non-trivial schemas, or at least that core.typed would have a hard time proving that return values match a schema. Is this only for a subset?
Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#4Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#5Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#6Great stuff, thanks for releasing this. Definitely going to use it soon.
Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#7Author here. Happy to answer any questions or comments.
Also, functional programming is heavily focused on data transformations, which in practice means lots of deeply nested heterogenous data structures... these types of structure are usually tedious to put into a static type system, but your system appears to make it easy.
Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#8This is really brilliant, and damned useful. Reminds me of how type declarations provide self documenting code in Haskell. Thanks alot!
Re: Schema for Clojure(Script) Data Shape Declaration and Validation
#9What is the difference between how Clojure and other functional programming languages declare types.