Nice. Hadn't heard of it before. It looks interesting. The criterium 
benchmark is kinda disappointing though. The pattern matched function took 
nearly 15x the time of the normal function.

Performance aside, in Elixir, there seems to be an established convention 
for creating the function argument tuple. Every function can expect to be 
pattern matched against both :ok and :err. NodeJS callbacks also have 
follow a convention, error first, which would make it trivial to pattern 
match against. Goodbye to all those mundane `if (err) {} else {}` checks. I 
can't quite think of any similar conventions in Clojure. 



On Saturday, 5 September 2015 14:05:02 UTC+5:30, James Reeves wrote:
>
> You might want to take a look at defun: 
> https://github.com/killme2008/defun
>
> - 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
--- 
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