4 ms·
> Ah just give me typescript, I do not need to learn a new thing for configuration languages People who don't know Typescript will still have to learn a new th
by flexagoon 3y ago
> Ah just give me typescript, I do not need to learn a new thing for configuration languages
People who don't know Typescript will still have to learn a new thing in that case, so there isn't really any reason to pick TS over any other existing language
> syntax highlighting in every editor
There is a tree-sitter parser for pkl, so it'll work anywhere where tree-sitter works. And for VSCode and JetBrains stuff, they have official extensions.
- hot_gril 3y agoMore people know TS (or JS, close enough) than Pkl, it can be used for more, and it's got better tooling/support. Those are understatements.
- mrudolph22 3y agoTS tooling won’t tell you when your config value violates the constraint “isBetween(0, 100)” or “matches(Regex(…))”. Among other things.
- hot_gril 3y agoA config validator, which can be written in TS, would.
- rockwotj 3y agoAgreed, runtime checks can be implemented in typescript - that’s the beauty of it
- mrudolph22 3y agoIn theory, yes. But I doubt that we’ll see a TS IDE plugin that underlines violated constraints with red squiggles anytime soon. :-)
- hot_gril 3y agoThere are IDEs that auto-run unit tests and highlight exceptions thrown in the main or test code, which wouldn't be far off.