Re:Strict APIs vs. Forgiving APIs
by misterdata on Wednesday October 28, 2020 @12:23PM
(#24920651)
Having used both stricter (Rust) and more loose programming languages (JS), I can add that stricter APIs have made me think more about edge cases than the less-strict APIs. In the less-strict languages I often find myself debugging some edge case, whereas in the stricter languages I am more often required to think about edge cases up front (including those that I know will not be relevant, so in some cases this causes more work than necessary!). Still I much prefer the stricter APIs.
[ Parent
| on HN ]
There are no comments on this comment yet.