> Is there actually a good practical use for this method signature? > Why not just accept an array?
I'd argue that in this particular case it's of little value, but who knows, I'm sure there's a story behind it. As for varargs in general, they seem to get added to nearly every language at some point, so I'd say there are probably many cases for their existence. At least in Ruby they're fairly painless, due to the splat operator. (Which, incidentally, can be used to apply any args, not just variable length ones.) Simon. -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
