Generic parameters for Extension methods
Howard Lovatt
howard.lovatt at gmail.com
Sat Aug 21 21:50:02 PDT 2010
Hi,
The position of a generic parameter for an extension method is
currently before the context sensitive word extension, e.g.:
<throws E> extension void forEach( Method1<T, T, E> block ) throws E
default Trait.forEach;
This is odd because extension 'feels' like a qualifier, like public,
and therefore I expected the syntax to be:
extension <throws E> void forEach( Method1<T, T, E> block ) throws E
default Trait.forEach;
Any reason?
-- Howard.
More information about the lambda-dev
mailing list