(no title)
regular_trash | 3 months ago
Also, many built in functions do not have sufficient typesafey like Object.entries() for instance
regular_trash | 3 months ago
Also, many built in functions do not have sufficient typesafey like Object.entries() for instance
teaearlgraycold|3 months ago
regular_trash|3 months ago
Seeing a deserialization error immediately clues you in that your borders are not safe. Contrast that with TypeScript, where this kind of issue can lead to an insidious downstream runtime issue that might seem completely unrelated. This second scenario is very rare in other languages.
criemen|3 months ago
When you call a REST API (or SQL query for that matter), how does it ensure that the data coming back matches the types?
TS allows you to do parse the JSON, cast it into your target type, done (hiding correctness bugs, unless using runtime verification of the object shape, see sibling comment). Does Rust enforce this?
jsheard|3 months ago
vjerancrnjak|3 months ago
EE84M3i|3 months ago
skydhash|3 months ago