cherry 2023-05-02

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.

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

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

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

@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.

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

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

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

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

(js* "1 + 2")