3 ms·
I'd be curious to know how effective this is at getting formatting close to a Prettier or rustfmt level of quality. I know that for Prettier there was a heavy l
by hardwaregeek 3y ago
I'd be curious to know how effective this is at getting formatting close to a Prettier or rustfmt level of quality. I know that for Prettier there was a heavy layer of custom logic around the core printer just to get output that looked decent. Of course even if it only gets 80-90% of the way there, that's still a massive achievement.
It's fascinating seeing these tools that facilitate building better programming language experiences. I've called them "Tooling for Tooling", basically tools that make it easier to create tools like formatters, linters, etc.
- afiori 3y agoIt might be that JS/TS creates very hard to handle code, but I find prettier choices quite disappointing.
- ErinvanderVeen 3y agoHi! We share the same curiosity for the effectiveness of our approach! Right now, we want to make Topiary great for languages with less complex formatting rules, and "good enough" for languages that are a bit more complex. Where, on a one-off basis, you don't feel the need to get the dedicated formatter. We don't yet have any ambitions to compete directly with Prettier and rustfmt among others. Having said that, we are quite proud of how the OCaml rules turned out, and even had some great results with the Rust rules. As we explore more, and expand the complexity of our tree-sitter scopes, who knows what kind of things we might be able to format! It's all very exciting!