Re:Rewriting TypeScript in Rust? You'D have to be
by Aeolun on Wednesday December 14, 2022 @06:15PM
(#33992215)
> A type system is supposed to make code easier to work with, by the time you're spending more time understanding the types than the actual code there's something wrong
This may be true in a lot of cases, but certainly not all.
I’ve spent a ton of time on the types that validate that the input/output schema of my request handler function matches the defined schemas, and that was hell, but now any other of our developers will see delightfully red squiggles when they do something wrong. That’s a force multiplier and absolutely worth the effort.
This may be true in a lot of cases, but certainly not all.
I’ve spent a ton of time on the types that validate that the input/output schema of my request handler function matches the defined schemas, and that was hell, but now any other of our developers will see delightfully red squiggles when they do something wrong. That’s a force multiplier and absolutely worth the effort.