Function types versus arrays

Alex Buckley Alex.Buckley at Sun.COM
Thu Feb 18 12:56:12 PST 2010


No.

1) No-one says function types are implemented as interfaces in Lambda.

2) Even if function types were implemented as interfaces, they would be 
implemented with generic interfaces, and then lack of reification for 
generics bites you. Other mails explain the problem.

Alex

Zdenek Tronicek wrote:
> Could you have arrays allowed in JVM and disallowed in the language?
> On the JVM level, function types are implemented as interfaces. So,
> 
> #int(int)... fns
> 
> would have been compiled as array but you were not allowed to write
> 
> #int(int)[] fns.
> 
> Z.


More information about the lambda-dev mailing list