Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tibbon
· 13y ago · 0 comments
You can do multiple return values of mixed (and non-predetermined) types in Ruby too.
Comments
[–]
jurre
13y ago
Meh, not really. In ruby `return x, y` is just syntactic sugar for `return [x, y]`, ie returning an array. It's also an indication that you probably need a class.
[–]
gutsy
13y ago
I did not know that, but then I've only played around with Ruby a little bit.