A syntax option (function types versus arrays)
Peter Levart
peter.levart at marand.si
Tue Mar 2 00:38:41 PST 2010
On Tuesday 02 March 2010 08:49:54 Peter Levart wrote:
> for void lambdas "void" keyword could be defined as expression of type void:
>
> (->void) lambda = (-> System.out.println("Hello!"); void);
>
Oops, this would make an ambiguous syntax:
(->void) lambda = (->void);
Or is this still unambiguous since type and expression appear in different contexts?
Peter
More information about the lambda-dev
mailing list