defun <https://github.com/killme2008/defun> is a macro to define clojure functions with parameter pattern matching just like erlang or elixir based on core.match.
https://github.com/killme2008/defun Thanks to sander dijkhuis <https://github.com/sander>, it supports clojurescript right now. You can use it in clojurescript as below: (ns cljs-test.core (:require [defun :refer-macros [defun]])) (defun count-down ([0] (println "Reach zero!")) ([n] (println n) (recur (dec n)))) (count-down 5) #Count down from five to zero. Have fun! -- 庄晓丹 Email: killme2...@gmail.com Site: http://fnil.net Twitter: @killme2008 -- 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.