Hi,

I've collected a bunch of predicate functions and bundled them up as
pretzel: https://github.com/joodie/pretzel

My main focus right now is towards string formatting predicates; tests
for decimals, hex, email, urls, etc. Plus I've added some functions
that combine predicates into new ones.

The idea is to have a simple collection of these kinds of functions
outside of possibly unwanted frameworks. I'm using them myself for
doing validation with clj-decline, but it should at least be useful
for most code that has to deal with free-form text input.

So:

1) Now you know this library is out there, and you don't necessarily
need to rewrite stuff from scratch.

2) I probably left out a lot of useful predicates, and I would like to
include more, so if you have an itch that needs to be scratched,
please suggest additions. Preferably as a pull request :)

3) I'm not sure right now how useful the predicate-combination
functions are, or if they should be part of the same distribution as
the string predicates. If you feel strongly one way or the other,
please let me know.

Cheers,
Joost Diepenmaat
Zeekat Softwareontwikkeling.

-- 
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

Reply via email to