reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2021-01-21T00:50:35.048700Z

@josh604 For (defn f [a b c]), calling (apply f ’(1 2)) will incur Execution error (ArityException)

2021-01-21T00:51:40.048900Z

However, in cljs, the exception won’t happen.

p-himik 2021-01-21T01:04:52.000100Z

As I said, that's because CLJS compiler does that check. The platform, which is JS, does not impose such a constraint on functions in runtime. CLJS does not check arities in runtime as well.

p-himik 2021-01-21T01:05:42.000300Z

This particular inconsistency between CLJ and CLJS, along with many others, is caused by the differences in the underlying platforms.