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: supertyping
by Larry Wall other posts by this author
Dec 13 2006 10:47AM messages near this date
Re: supertyping | Re: supertyping
On Wed, Dec 13, 2006 at 11:25:40AM +0000, Smylers wrote:
: Jonathan Lang writes:
: 
: >  For the record, I think that "superdoes" should be spelled "done_by".
: 
: I think it's unlikely that Larry will incorporate any keywords that
: contain underscores -- certainly not without at least searching for a
: single word that sums up the concept in question.

And I'm not even gonna do that if I can't be convinced of a use case
beyond "Num does Complex".  And since my sinuses are full of the crud
that is going around right now, I'm not in a very convincable mood.
With the little sense of smell I have left, this smells like INTERCAL's
"COME FROM" statement to me, trading a teeny bit of notational convenience
in one spot for oversized headaches elsewhere.  Most Perl programmers
are not interested in type theory, and complexifying the little bit of
intentional typing we're introducing with roles will simply cause most
people to avoid it like the plague.  We might *possibly* get away with
reopening roles like we can reopen a class:

    role Num is also does Complex {
	method im {...}
    }

but roles are really supposed to be fairly immutable in the Perl 6
scheme of things, so such a declaration would probably have to require
that the Num role never have been composed into anything else yet.

Or we could say that you can't reopen the Num role; you can only
reopen the Num class and mix in the Complex role.  That's where it
stands at the moment.

Larry
Thread:
Jonathan Lang
Jonathan Lang
Smylers
Larry Wall
TSa
TSa
Smylers
Ruud H.G. van Tol
Ruud H.G. van Tol
TSa

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