2 ms·
>However even in 2012 (when Go 1.0 was released), errors as values was a pretty novel idea among mainstream programming languages >Errors as values is a quite
by nemothekid 1y ago
>However even in 2012 (when Go 1.0 was released), errors as values was a pretty novel idea among mainstream programming languages
>Errors as values is a quite old idea, predating exceptions, mainstream just got a bit forgotten about how we used to code until early 2000's.
I'm not sure these two sentences are in disagreement with each other.
>the beauty of 3rd party dependencies is that each dev has a different opinion what they should be,
The hope is in that some time in the future, the community will eventually coalesce on a superior option with the appropriate patterns. Because the mainstream had forgotten how to use errors as values, my point is, its more likely that Rust 1.0 would have baked in a poor solution.