Wait, what? What is AliasSeq?
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 15 12:52:32 PDT 2015
On 2015-07-15 18:09, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm at gmx.net>"
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
More information about the Digitalmars-d
mailing list