helix

https://github.com/Lokeh/helix
wilkerlucio 2020-06-01T00:06:21.104600Z

@lilactown sounds like what you said assumes that the user can only go via the macro, but what when the user needs to call the thing with apply? IME we will always need to non-macro version, runtime calls are non avoidable in some cases

wilkerlucio 2020-06-01T00:06:49.105100Z

the bandaid you mention can be just the solution IMO (just use that on styles as-is)

lilactown 2020-06-01T00:26:12.106Z

I’ve never needed the runtime version in my code fwiw

lilactown 2020-06-01T00:47:53.106200Z

but I want to support it

Aron 2020-06-01T04:46:56.107Z

this thing with the apply caught me regularly until it clicked finaly and I could use it, but I guess that was because I was new to cljs+react

MorongÖa 2020-06-01T10:32:48.107300Z

how would this look like?

MorongÖa 2020-06-01T10:33:12.107600Z

<Form.Field name='name.first'/>
in #helix

Aron 2020-06-01T11:00:15.108200Z

($ Form.Field {:name "name.first"})

Aron 2020-06-01T11:01:03.109Z

this is why I never liked jsx, I always believed that keeping the original createElement function semantics is important

MorongÖa 2020-06-01T11:18:56.109600Z

Thank you. Struggled a bit there. But did get it

Aron 2020-06-01T11:22:42.110700Z

np. I think it could be ($ (.Field Form) {:name "name.first"}) too

MorongÖa 2020-06-01T14:49:09.111200Z

That would require Field to be a function of Form , no?

Aron 2020-06-01T14:49:27.111400Z

it is

Aron 2020-06-01T14:50:02.111800Z

I mean, "`($ Form.Field ...)`" already means it is a react component, so it's a function

👍 1
lilactown 2020-06-01T15:08:00.112500Z

if you use the postfix notation it’s (.-Field Form)

lilactown 2020-06-01T15:08:37.113600Z

(.Field Form) invokes Field immediately as a function. .- takes it as a value using property access

👍 2