3 ms·
> Usually the lie is in your own code or bad dependencies The lie is almost always in an external API response from fetch (hence the complaint about “any” abov
by hellcow 3y ago
> Usually the lie is in your own code or bad dependencies
The lie is almost always in an external API response from fetch (hence the complaint about “any” above).
> Could you provide examples?
Off the top of my head… Go’s stdlib json.Unmarshal and Rust’s Serde derive Deserialize.
- __ryan__ 3y agoThe lie is when your code uses* the “any” value where a concrete type is expected. I was misunderstanding your point with the deserialize. Edit: “using” -> “uses”