Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



The 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”




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: