Re:Python Is Easy. Go Is Simple. Simple != Easy
by pydry on Monday November 27, 2023 @01:37PM
(#38436246)
It's pretty clear what the payoff is for the investment in using a borrow checker, and it's quite big. Less so for writing if err != nil on every. other. line. That's just an unnecessary nuisance.
[ Parent
| on HN ]
Re:Python Is Easy. Go Is Simple. Simple != Easy
by gwd on Monday November 27, 2023 @03:08PM
(#38437515)
The payoff is the same: you do more work up front, but have fewer weird, hard-to-track-down bugs later. Even rust's "?" operator nudges you towards "just pass the error on up", rather than actually thinking about what you want to do if an error happens each time.