News for hackers. Stuff that matters.
Re:Learn X in Y minutes where X = Go by tibbon on Wednesday September 04, 2013 @10:25AM (#6327751)
You can do multiple return values of mixed (and non-predetermined) types in Ruby too.
Re:Learn X in Y minutes where X = Go by jurre on Wednesday September 04, 2013 @02:46PM (#6329570)
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.
Re:Learn X in Y minutes where X = Go by gutsy on Wednesday September 04, 2013 @11:33AM (#6328257)
I did not know that, but then I've only played around with Ruby a little bit.