On 07/14/2010 12:30 AM, Dibyendu Majumdar wrote:
- Similar to Go but not exactly the same - no point adding a feature
that cannot be done efficiently in the JVM. Therefore closures only
when natively supported in JVM (i.e. 7).
Kawa implemented closures efficiently using JDK 1.1.
Lots of languages implement closures - no need to worry
about the efficiency of closures. Of course JDK 7 closures
can make closures simpler to implement and/or more efficient.
For example calling an unknown closure takes takes or returns
a primitive value requires boxing, but that's not that common,
and it could also be optimized by the JVM.
--
--Per Bothner
[email protected] http://per.bothner.com/
--
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en.