This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-24
Channels
- # aws (2)
- # babashka (27)
- # beginners (97)
- # calva (1)
- # cherry (12)
- # cider (6)
- # clara (12)
- # clj-kondo (24)
- # clj-on-windows (4)
- # cljfx (14)
- # clojure (54)
- # clojure-australia (3)
- # clojure-europe (26)
- # clojure-nl (1)
- # clojure-norway (4)
- # clojure-uk (9)
- # clojurescript (65)
- # conjure (5)
- # cursive (7)
- # datomic (18)
- # emacs (6)
- # helix (2)
- # honeysql (1)
- # jobs (1)
- # joyride (15)
- # kaocha (2)
- # lsp (10)
- # malli (5)
- # nbb (12)
- # observability (5)
- # off-topic (5)
- # reitit (2)
- # releases (4)
- # ring (1)
- # sci (17)
- # shadow-cljs (34)
- # testing (29)
- # tools-deps (45)
- # vim (7)
- # xtdb (6)
any thoughts on adding support for ES6 classes? class
syntax is required to create custom elements (web components), something I'm missing in ClojureScript
here's how you can do that currently: https://juju.one/create-javascript-class-with-prototype-methods-in-clojurescript/
I think that's not enough to create a custom element, and for that reason shadow-cljs
added the defclass
macro. At least that's my understanding
Maybe this could be the reason? https://clojure.atlassian.net/browse/CLJS-3084
I'm willing to consider it, you can open an issue, but not sure when I will get to it since I also need to consider the pros/cons. You could also decide to implement that custom type in JS and then use it from cherry
$ ./node_cli.js -e '(js* "class Foo {}") (prn (new Foo))'
#object[Foo [object Object]]
thanks @borkdude Before opening an issue, I have to research it a bit more (but I don't know when) Maybe the class syntax in not really required. Just wanted to know if there was already some discussion about the topic