3 ms·
So you _actually_ use function names as strings? That seems like a problem, and that it would need its own special editor tooling. Yikes.
by escherize 11y ago
So you _actually_ use function names as strings? That seems like a problem, and that it would need its own special editor tooling. Yikes.
- munro 11y ago(defui my-component [x] <h2 class=(when (selected? x) ["selected"])>Hello</h2>) It's possible to macro the above to the code below, without any language extensions. IntelliJ has powerful nested DSL introspection, it would be neat if Cursive allowed to hook into this through defui's metadata for highlighting. I was a hater of JSX until I used it. Now I hate eDSLs. :D (defn my-component [x] [:h2 {:class (when (selected? x) ["selected"])} "Hello"])