A syntax option (function types versus arrays)

Neal Gafter neal at gafter.com
Thu Mar 11 12:36:50 PST 2010


On Thu, Mar 11, 2010 at 11:33 AM, Serge Boulay <serge.boulay at gmail.com> wrote:
> .net has something similar to what you describe. Take a look at  Func<> and
> Action<>

Yes, Scala too.  That's possible if your language has declaration-site
variance (as Scala and C# have), and allows all types in generics, but
Java does not have either.  In any case, I can tell you from personal
experience that the syntax is not particularly readable.


More information about the lambda-dev mailing list