logoalt Hacker News

bravesoul2last Tuesday at 8:54 PM1 replyview on HN

You can at least in Go do this:

r, err := f()

r := f()

_, err := f()


Replies

masklinnlast Wednesday at 4:09 AM

No, you can not do the second one.

The other two are completely routine and will work just fine with lists in JS or tuples in Python or Rust (barring a few syntactic alterations).