2 ms·
>Rust does have multiple returns, but that's just the obvious result of supporting tuples in the language (to say nothing of tagged unions). Yes, but it's (fro
by wyager 13y ago
>Rust does have multiple returns, but that's just the obvious result of supporting tuples in the language (to say nothing of tagged unions).
Yes, but it's (from a user standpoint) practically the same thing!
>The hidden out-param you speak of is just there to guarantee return-value optimization
Yes, which allows for the efficient return of arbitrary-sized structs, i.e. multiple return.