stch.schema a Prismatic Schema fork

166 views
Skip to first unread message

da...@dsargeant.com

unread,
Feb 6, 2014, 2:18:58 PM2/6/14
to clo...@googlegroups.com
Please check out the repo README page for motivations and differences.  Thanks so much to the Prismatic people for open sourcing Schema.  It's awesome and I love it.  Some of my changes seemed too different to even consider a pull request, so I decided to create my own fork.  All feedback is welcome.

https://github.com/stch-library/schema

Leif

unread,
Feb 6, 2014, 9:36:46 PM2/6/14
to clo...@googlegroups.com
 fn* and letfn* are special forms.  I would double-check that things work as you expect if you (use 'stch.schema).
E.g.:

> (use 'stch.schema)
> (macroexpand '(fn* simple-fn :- Int [x :- Int] (inc x)))
; => (fn* simple-fn :- Int [x :- Int] (inc x)) ; nope, can't expand special form
> (macroexpand '(stch.schema/fn* simple-fn :- Int [x :- Int] (inc x)))
; => (let* [ufv__ stch.schema.util/use-fn-validation ...) ; works


--Leif

da...@dsargeant.com

unread,
Feb 7, 2014, 10:55:29 AM2/7/14
to clo...@googlegroups.com
Thanks for pointing that out.  Changed defn*, defrecord*, fn*, letfn* to defn', defrecord', fn', and letfn'.  Added tests for fn' and letfn'.
Reply all
Reply to author
Forward
0 new messages