Hey, thanks, I like your idea of utilizing closure as poor's man object (or 
vice versa if you like :) ) to encapsulate 
particular validators.

However, one note is that I was opting for a more dynamism/flexibility like 
simply associating field 
with set of arbitrary composed set of validators. But of course given 
re-occurring pattern for multiple
fields composing them as you suggest is next logical step.

And... about performance...that is not an issue currently at all :)

Good tips, thanks!

On Thursday, February 9, 2017 at 7:01:36 AM UTC+1, Herwig Hochleitner wrote:
>
> Of course, for performance you can optimize that apply+hash-map+interleave 
> (or even your reduce) into reduce+transients, e.g. by using map-vals 
> <https://github.com/webnf/webnf/blob/6a2ccaa755e6e40528eb13a5c36bae16ba4947e7/base/src/webnf/kv.clj#L66>
> .​
>

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

Reply via email to