ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl6-language
perl6-language
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved