Y
Hacker News
new
|
ask
|
show
|
jobs
by
hot_gril
867 days ago
More 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.
1 comments
mrudolph22
866 days ago
TS tooling won’t tell you when your config value violates the constraint “isBetween(0, 100)” or “matches(Regex(…))”. Among other things.
link
hot_gril
866 days ago
A config validator, which can be written in TS, would.
link
mrudolph22
866 days ago
In theory, yes. But I doubt that we’ll see a TS IDE plugin that underlines violated constraints with red squiggles anytime soon. :-)
link
hot_gril
866 days ago
There are IDEs that auto-run unit tests and highlight exceptions thrown in the main or test code, which wouldn't be far off.
link
rockwotj
866 days ago
Agreed, runtime checks can be implemented in typescript - that’s the beauty of it
link