Re:Why we’re writing machine learning infrastructure in Go, ...
by loicd on Saturday January 18, 2020 @12:29PM
(#22085657)
Thanks for the writing. I had noticed some of the things you wrote but not all (I am not a Go programmer though I keep track of what is happening there). Your post made me look a bit more into 'defer'. I did not expect it to be a source of errors.
[ Parent
| on HN ]
Re:Why we’re writing machine learning infrastructure in Go, ...
by apta on Saturday January 18, 2020 @01:02PM
(#22085870)
No problem. As a side note, the Zig language does a much better job here, especially with defer. It works at the scope level (how it's supposed to be), and they have an `errdefer` construct used to call functions that return errors.