On 12 April 2011 12:16, Joost <jo...@zeekat.nl> wrote: > An input string of "foobar" is obviously not a number between 10 and > 20, so whatever predicate you use to test for that should just return > false. That not everybody here agrees on that indicates to me that > people are trying to shove too much functionality into single tests/ > predicates. I want simple, correct, well tested predicates that people > can use. I'm trying NOT to make design decisions that can be made by > the user of the library instead.
I whole-heartedly agree with the sentiment; my only reservation is that it might make validating form data using those predicates a little more difficult to use in practise. I'm hoping you'll eventually prove me wrong, as your predicates seem to be the more correct way of doing things. But even if you don't, it would still make sense for me to base the validation functions in Valip on the more generic predicates in Pretzel. - James -- 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