cherry

2023-05-02T15:36:57.163489Z

Does Cherry support JS classes? I need to write a web component. I know squint doesn’t (https://github.com/squint-cljs/squint/issues/288), so I assume neither does Cherry, but wanted to check.

borkdude 2023-05-02T15:37:31.517599Z

@jakub.stastny.pt_serv Unfortunately not (yet) - so doesn't normal CLJS I think

borkdude 2023-05-02T15:37:46.851999Z

The best alternative may be to write this thing in .js and then use that from cherry

2023-05-02T15:37:53.488269Z

Yep as far as I know it’s only ShadowCLJS that supports it.

2023-05-02T15:38:35.176699Z

@borkdude yeah that’d work normally, but it’s a thing based entirely on Web Components, so there’s little point of using Cherry at this stage unfortunately.

borkdude 2023-05-02T15:39:01.458179Z

There is also js* which you can use to generate literal JS, which may help

2023-05-02T15:39:57.156199Z

Does it have any documentation/example? I haven’t come across it yet.

borkdude 2023-05-02T15:40:15.681859Z

no, but works fairly similar to the same thing in CLJS

2023-05-02T15:40:35.838249Z

Ah OK, wasn’t aware of that one either. Cheers.

borkdude 2023-05-02T15:40:44.709509Z

(js* "1 + 2")

2023-05-02T15:40:51.597099Z

OK got it.