Fork me on GitHub
#squint
<
2023-01-16
>
Andrea15:01:02

hello squinters! Is it possible to emit es class code (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes) from squint syntax, with inheritance, getters, etc?

borkdude15:01:11

Currently not yet. But you can write (js* "whatever you want") to produce some ad-hoc JS

Andrea15:01:47

okay, thanks

borkdude15:01:09

feel free to post an issue about this (if it doesn't exist yet)

Andrea17:01:48

https://github.com/squint-cljs/squint/issues/288 hope to have formulated it correctly. Couldn’t find an existing one.

borkdude17:01:47

Thank you! Perhaps as a temporary workaround you can define the class in an external .js file and use this.

👍 2