News for hackers. Stuff that matters.
Re:What Clojure Spec is and what you can do with it by agumonkey on Thursday September 10, 2020 @02:11PM (#24434983)
can you "stream" conform ? for UI live input

so that "john mcallister" yields { :name "john" :lastname "mcallister" } but "john " would yield { :name "john" :lastname nil } (or :todo even)

Re:What Clojure Spec is and what you can do with it by didibus on Thursday September 10, 2020 @02:38PM (#24435245)
You could call it on every input change, though I'd say Spec conforming is not the most performant parsing library in the world, so not sure if it be fast enough for running it on each input.
Re:What Clojure Spec is and what you can do with it by agumonkey on Friday September 11, 2020 @03:22AM (#24439997)
yeah that's why I was looking for a lazy / stream variant in case it wasn't already possible

/me goes to prolog