hyperfiddle

euccastro 2025-04-15T21:26:15.231299Z

Describing an electric component in the argument list of a call to an e/fn is akin to defining it in a let binding block, that is, it doesn't mount the component and it does not determine its site, right? The site is determined, and the component is mounted, when the binding is referred to in the body of the called e/fn, just like let-bound components need to be "mentioned" in the let body to be actually mounted? I kind of stumbled into this behaviour (at least the mounting part; not sure about the siting one?), just confirming that I'm getting it right. If so, this is nice, another way in which Electric 3 reduces the need for macros.

xificurC 2025-04-16T07:19:07.377849Z

Correct. Indeed in v2 we had issues across e/fn e/defn boundaries, one had to write macros to get the desired behavior. This is fixed in v3, we don't really write macros anymore

🙏 1