lambda syntax tutorial
Florian Weimer
fweimer at bfk.de
Tue Aug 10 01:26:55 PDT 2010
* Maurizio Cimadamore:
> Defender methods are declared using the 'extension' keyword, as follows:
>
> extension List<T> map(Mapper<T> r) default Collections.<T>listMapper;
So it seems that "extension" comes after the type parameters, as in:
<T, throws E> extension T runL(Txn<T> txn) throws SQLException, E
default ConnectionPools.runL;
I think that's a bit surprising.
--
Florian Weimer <fweimer at bfk.de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99
More information about the lambda-dev
mailing list