cherry

borkdude 2022-07-30T19:49:21.960139Z

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

1
mkvlr 2022-07-30T21:54:42.932979Z

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

mkvlr 2022-07-30T21:55:05.494459Z

🤔

borkdude 2022-07-30T21:56:14.995979Z

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

borkdude 2022-07-30T21:58:11.882339Z

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

mkvlr 2022-07-30T21:58:42.505059Z

doh, sorry for missing that

borkdude 2022-07-30T21:59:00.532429Z

I think it should not be so hard to change it

borkdude 2022-07-30T21:59:10.897869Z

but I wanted to get it working first

mkvlr 2022-07-30T22:00:15.246269Z

great to see it working, congrats!

🎉 1
borkdude 2022-07-30T19:59:08.702369Z

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.