On 2015-07-15 18:09, "Marc =?UTF-8?B?U2Now7x0eiI=?= <[email protected]>" wrote:

Yeah, "splat" as a name for an auto-expanding thingy would be a novelty.
Ruby for instance doesn't have anything like that, it has a splat
_operator_ (asterisk) to expand a normal array, or conversely, capture
several arguments in one parameter.

I'm not sure what should count as auto-expanding, but this works in Ruby:

a, b = [1, 2]

No extra operator is required in this case.

--
/Jacob Carlborg

Reply via email to