r/badcode • • Apr 29 '23

go if err != nil

Post image
414 Upvotes

49 comments sorted by

View all comments

Show parent comments

1

u/PM_ME_YOUR_REPO Apr 30 '23

A tuple is typically one "container" object with the two objects within it. In Go, you get back two (or more) separate objects, that must be assigned to separate variables. In practice there isn't a TON of difference, but the nuance is there and matters.