hyperfiddle

2025-05-12T15:33:50.373159Z

Does tutorial say that Electric fns in (let) bindings must be bound to names starting with uppercase letter? Just spent couple of hours figuring this out, thinking I was going crazy. Very sneaky error, it doesn't say that anything is wrong, just returns nil when I try to call uncapitalized fn.

😮 1
xificurC 2025-05-12T15:38:28.743059Z

sorry for the pain. We used to have it in the tutorial, probably in the first one, but I don't see it there anymore. The calling convention is (foo 1 2 3) is a clojure call, (Foo 1 2 3) is an electric call. You can override this with e/call, i.e. (e/call foo 1 2 3) will be an electric call. This is useful when the function is computed dynamically, e.g. (e/call (if x Foo Bar) 1 2 3)

👀 1
Dustin Getz (Hyperfiddle) 2025-05-12T16:49:16.066489Z

really sorry, this is my fault, we are rebuilding the docs this month and you caught us in transition

👌 1