On Wed, May 25, 2016 at 3:01 PM, Mike Rodriguez <mjr4...@gmail.com> wrote: > > I always really liked that Prismatic Schema had a "data representation" > and that seems to be the Clojure-way anyways. I haven't dug into this too > much yet, but I'm hoping that the Spec's do have some way to > programmatically inspect them and utilize their structures for other > purposes. >
Nothing precludes a system of data-described predicates. Just implement a datatype that implements IFn, in addition to some collection interface. Basically something like Records, except that (f x) will invoke the predicate described by f's data rather than looking up a value in the collection that f also represents. How this would work out in practice I have no idea but it seems worth trying. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.