Y
Hacker News
new
|
ask
|
show
|
jobs
by
dbaupp
4665 days ago
Any language with tuples automatically gets "anonymous" multiple return values. (e.g. Python's `(1, "foo", None)`.)
(Go's multiple return values seem to just be simulating a single use case of proper tuples.)
1 comments
gutsy
4665 days ago
Well, all I've written since college has been Java, so this is all new to me. I've only briefly checked out Ruby and Python, and not enough to really know that much about either language.
link