develooper Front page | perl.perl6.language | Postings from May 2005

Re: Syntax for specifying role parameters

Thread Previous | Thread Next
From:
TSa
Date:
May 19, 2005 08:20
Subject:
Re: Syntax for specifying role parameters
Message ID:
428CAE7D.9060105@orthogon.com
Ingo Blechschmidt wrote:
> I meant: The colon should still act as the delimiter between the params
> which account to the long name of the role and those which don't, but
> otherwise the syntax should be the same as the standard subroutine
> signature syntax, allowing optional params, etc.

I don't think that a role has a long and a short name. This is
because they aren't subject to MMD. I think of them more as
beeing expanded like C++ templates even though the actual mechanism
will be much more sophisticated. Actually I think of them as F-bounds
as well ;)


> s/T/::Type/?

Ohh, sorry. Yes, or the other way round. Should be consistent.
-- 
TSa (Thomas Sandlaß)


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About