Function types versus arrays

Howard Lovatt howard.lovatt at iee.org
Thu Feb 18 02:28:08 PST 2010


Hi Josh,

My reasons for discussing the implementation are:

1. If you can demonstrate that you can do the difficult cases then
arguments along the lines of "we shouldn't have lambda arrays because
we can't implement them" are negated.
2. I was interested in fast implementations, particularly for
primitives and particularly for parallel processing
3. It was fun to see if it was possible (a number of people had said
you couldn't do reified lambdas)

With regard to my suggestion:

http://www.artima.com/weblogs/viewpost.jsp?thread=278567

This suggestion fits very well with Java. The main exception is that:

#int() il = #int()(1);
#long() ll = il;
ll != il // since ll is il wrapped
ll.equals(il) == true // equals is implemented to compared the unwrapped lambdas

This is similar to String or none cached Integers etc. Therefore hopefully OK.

  -- Howard.


More information about the lambda-dev mailing list