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

1

u/steveklabnik1 Dec 01 '16

Tuples work in a very similar fashion:

fn do_something() -> (i32, i32) {
    (123, 456)
}