3 ms·
Rust, and other modern languages, have tuples. So a single return value is effectively sufficient. I refuse to believe that go added MRV for some esoteric reas
by the_gipsy 2y ago
Rust, and other modern languages, have tuples. So a single return value is effectively sufficient.
I refuse to believe that go added MRV for some esoteric reason. In practice it just makes up for the lack of tuples and sumtypes (errors mostly). It also would stand sharply against every other design decision (or accident) that go has made.
MRV also lacks functors in contrast to tuples.