clojure-spec

About: http://clojure.org/about/spec Guide: http://clojure.org/guides/spec API: https://clojure.github.io/spec.alpha/clojure.spec.alpha-api.html
Philipp Siegmantel 2020-01-19T13:01:00.033500Z

Hello Everybody, what test runner/library do you use with clojure.spec.test.alpha/check? I found https://gist.github.com/jmglov/30571ede32d34208d77bebe51bb64f29 for integration with clojure.test but the errors it prints aren't verry informative. Is there something better?

dominicm 2020-01-19T15:03:48.033900Z

Clojure core uses something custom

Philipp Siegmantel 2020-01-19T16:07:13.034300Z

Do you have a link?

respatialized 2020-01-19T17:58:42.036300Z

has anyone written an unofficial spec for EDN? I'm looking for a programmatic way of distinguishing between Clojure forms and plain EDN forms.

seancorfield 2020-01-19T18:45:31.036800Z

@afoltzm This is the definitive word on EDN I believe https://github.com/edn-format/edn

2020-01-19T21:57:54.037900Z

Clojure core has an implementation of reading arbitrary Clojure forms, via clojure.core/read, and the EDN subset, via clojure.edn/read

2020-01-19T21:58:26.038500Z

Those implementations in Clojure itself are written in Java. The tools.reader contrib library also has implementations written in Clojure.