ditto icon indicating copy to clipboard operation
ditto copied to clipboard

Use Rome?

Open jmackie opened this issue 2 years ago • 1 comments

Maybe we can integrate https://rome.tools/ into the JavaScript codegen, as it's all written in Rust?

jmackie avatar Jan 06 '23 11:01 jmackie

Actually, integrating rome might be quite a good shout 👀

Having human readable JavaScript is actually quite useful for debugging (both the compiler, and shoving console.logs into generated code, etc) as well as test coverage analysis.

I explicitly said this was a non-goal, but I'm happy to go back on that.

https://github.com/ditto-lang/ditto/blob/9cbfc7f12dfc7833a5220570fe1f6c34884c9663/crates/ditto-codegen-js/README.md?plain=1#L13

And also, if we went down this road, rome might make a good replacement for dprint 👀👀

jmackie avatar Feb 26 '23 16:02 jmackie