3 ms·
If you really want to waste time on types, the bolted-on TS is never going to work as well as Golang where they're native. Maybe TS types are better than Python
by hot_gril 2y ago
If you really want to waste time on types, the bolted-on TS is never going to work as well as Golang where they're native. Maybe TS types are better than Python types is all.
- epolanski 2y agoGolang's type system is not as expressive as TypeScript's. It's fine to not know about the goods in the TypeScript ecosystem. Again, I recommend you checking libraries like effect-ts or effect/schema or even better trying them. https://effect.website/docs/getting-started/why-effect/ https://effect.website/docs/getting-started/why-effect/
- hot_gril 2y agoTo be honest, I don't like the look of Effect for the same reason I don't like error handling in Golang. It's easier to assume anything can fail (which is 99% correct) and use exceptions. But anyway, every language can be extended in many ways, so I can really only compare default vs default.