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: When can I take given as read?
by Rod Adams other posts by this author
Jun 17 2005 12:09PM messages near this date
Re: When can I take given as read? | nested subs
Larry Wall wrote:

> Can anyone think of a good reason not to topicalize the first arg
> of ordinary subs these days?  Other than subtle encouragement toward
> use of multis?  I suppose it also makes refactoring between subs and
> methods more difficult in the case where you're adding an invocant,
> though it actually makes it easier in the case where you're just
> turning the first sub argument into an invocant because you realize
> you've been writing C-style OO code...
>   
> 

I'm having a hard time coming up with good reasons why we don't

    s:g/<!before multi \s+>  (sub|method) /{"single $1"}/;
    s:g/multi (sub|method) / $1 /;

And then have a "single" still be multi, just with a MMD distance of 
-Inf to everything.

-- Rod Adams
Thread:
Piers Cawley
Larry Wall
Damian Conway
Carl Franks
Juerd
Rod Adams

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