Neat! I made something (I think) similar a while back, also inspired by Clojure. Mine's more of a proof-of-concept, as I have zero Clojure experience outside some very casual reading.<p><a href="https://github.com/brian-c/patterned-function" rel="nofollow">https://github.com/brian-c/patterned-function</a>
I like this very much. It's like a lightweight dispatcher/router/alternative to tons of switches/if & elses. And also that the source is very short and readable.
Nice stuff, I liked the approach.<p>But what is the benchmark for this kind of structure against regular JS workflow? I guess it will be slower, but how much ?