Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well, duh... I mean, that's the same mechanism that allows a function to return multiple values, and Go prides itself on its orthogonal features, so of course you can do that. Also handy for swapping: "x, y = y, x". Go isn't always more verbose than other languages...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: