Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So you _actually_ use function names as strings? That seems like a problem, and that it would need its own special editor tooling. Yikes.


    (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"])




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: