cherry 2022-07-30

Added support for multi-arity + varargs fn + defn today.

1

let me check the pr if varargs are compiling to the es6 spread operator

I already explained in the channel that this isn't compiling to the spread operator ;)

I made an issue though to change it to do that (while investigating trade-offs)

doh, sorry for missing that

I think it should not be so hard to change it

but I wanted to get it working first

great to see it working, congrats!

🎉 1

And updated the react example which is a little nicer now that we have varargs: https://github.com/borkdude/cherry/blob/main/examples/react/index.cljs I didn't exploit JS splice operator yet, I mostly borrowed (cherry-picked) code from CLJS to implement varargs for now.