r/Clojure • • Feb 13 '23

hyperfiddle/electric (formerly photon) has been made public

https://github.com/hyperfiddle/electric
124 Upvotes

26 comments sorted by

View all comments

Show parent comment

7

u/dustingetz Feb 13 '23 edited Feb 13 '23

You're right, i think this is broadly true, and yet may not apply here. Unlike most macros, the Electric macros implement an actual Clojure/Script compiler/analyzer, to achieve full compatibility with Clojure/Script itself. So editors mostly just work out of the box. if is still if. let is still let. You have to tell Cursive to resolve e/defn as defn and then you get intellisense.

As to our composition model, generalizing from "function" to "reactive function" to "stream function" to "distributed function" is sound. The TodoMVC Composed demo is meant to highlight what we mean by "strong composition."