malli

https://github.com/metosin/malli :malli:
borkdude 2020-10-22T10:39:45.301500Z

@ikitommi I was noticing a regex/parse function in one of the examples. Why is there a special regex/parse function: shouldn't all schema's support parse - not only regex schemas? And maybe parse is just a special case of a transformer?

borkdude 2020-10-22T10:41:39.301800Z

Note: this question is coming from a relatively inexperienced user of malli

ikitommi 2020-10-22T10:51:44.304600Z

@borkdude good question! it’s the internal api, not yet integrated into malli.core. after it’s integrated, there will ne a`-destructure` or -parse method in Schema. My first guess was that there is no need to have a reverse function for that in Schema (like spec has conform and unform), but not 100% sure.

ikitommi 2020-10-22T10:54:09.306200Z

oh, haven’t pushed the current draft into github. will have time tomorrow for this, will push the stuff out.