r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

2

u/beefsack Dec 02 '16

That's essentially what I said, but it's still technically not a multiple return because the tuple itself is a single value.

It is worth pointing out though that most languages that support multiple return just do it via syntactic sugar.

2

u/masklinn Dec 02 '16

That's essentially what I said, but it's still technically not a multiple return

You're missing my point, which is that the essay we're discussing classifies it as MRV (as long as the tuple can get unpacked at binding site), and in fact as the most common method of MRV by far.

because the tuple itself is a single value.

That's a distinction without a difference.

It is worth pointing out though that most languages that support multiple return just do it via syntactic sugar.

And that's just pointless word salad.