Fork me on GitHub
#squint
<
2022-08-25
>
lilactown00:08:13

I think that CLJS partial also doesn't bind this

lilactown00:08:13

I would also be fine with not including partial tbh

1
Cora (she/her)00:08:03

I like the idea of clava working with js a little more by including things like bind while also including conveniences like partial for pure code

borkdude01:08:20

I'm with @U4YGF4NGM that we should either not include partial or just do the pure fn thing. The reason I made the issue was that I ported code of someone else using partial but I almost never use partial myself

Cora (she/her)00:08:32

well, not even pure code, just not depending on OOP's implicit self

lilactown02:08:53

I wonder if we could make #() emit arrow functions?

lilactown02:08:20

or if we should try to fit arrow functions in some other way

borkdude02:08:09

I've thought about that too. Async fns are done using metadata. We could also do *:=> (fn []) or so. I wouldn't want to encourage people to write more #() just to get arrow fns. We could also decide to emit arrows, unless given some hint

lilactown13:08:51

I think for a lot of people, if they could go back and make JS over again they'd have arrow function behavior w.r.t. this be the default

lilactown14:08:58

@borkdude still figuring out my magit workflow, I accidentally pushed to main

lilactown14:08:14

can we protect it to prevent more stupid errors on my part? 😅

lilactown14:08:35

force pushed to roll back that commit

borkdude14:08:06

Ok feel free to protect it

lilactown14:08:08

it is protected now