On Apr 7, 1:47 am, James Reeves <jree...@weavejester.com> wrote: > I've been writing a small validation library, Valip, with a number of > included predicates. The predicates in Valip are curried if they have > more than one argument, but there is probably some overlap between > Valip and Pretzel, and it might be an idea to farm out some more > generic functionality to Pretzel.
I think your choice of currying makes more sense, at least in the context of validations, so it might be a good idea to switch pretzel over to that scheme. > https://github.com/weavejester/valip/blob/master/src/valip/predicates... > > Also, it looks like your ^String type hint is in the wrong place for > your length? predicate. Oh, you're right. I really should work on extending the tests... If you want, I can take a stab at unifying the code for this. Cheers, Joost. -- 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