Re: [ClojureScript] Re: Function passed as parameter, its parameters number will not be validated when called.

2019-11-07 Thread Aklscc
re version throws an exception: >> >> user=> (call-fn my-fn) >> >> ArityException Wrong number of args (2) passed to: user/my-fn >> clojure.lang.AFn.throwArity (AFn.java:429 <http://afn.java:429/>) >> >> Alan >> >> >> On Wednesday, November 6

[ClojureScript] Function passed as parameter, its parameters number will not be validated when called.

2019-11-06 Thread Aklscc
Hello, everyone. I use ClojureScript as following: (defn call-fn [f] (f 23 34)) (defn my-fn [a] (println a)) (call-fn my-fn) ;; => 23 Without any exception throwed. Why does this? Is it a bug? -- Note that posts from new members are moderated - please be patient with your first post.