Re: sub my_zip (...?) {}
by Dave Whipp other posts by this author
Jun 16 2005 1:05PM messages near this date
Re: sub my_zip (...?) {}
|
Re: sub my_zip (...?) {}
Larry Wall wrote:
> You must
> specify @foo[[;]@bar] or @foo[()] <== @bar to get the special mark.
I'm uncomfortable with the specific syntax of @a[()] because generated
code might sometimes want to generate an empty list, and special-casing
that sort of thing is always a pain (and fragile). An empty list of
subscripts should return an empty slice.
What this mark is really trying to say is "The definition of the indices
is coming from elsewhere". I'm wondering if these semtantics would make
it appropriate to use the yada operator here:
@foo[...] <== @bar;
Dave.
Thread:
Autrijus Tang
Larry Wall
Smylers
Gaal Yahas
Larry Wall
Dave Whipp
Larry Wall
Luke Palmer
Larry Wall
|