I'm not sure how we got from method pointers to closures, but of the top 5
C, C++, Objective-C and C# all have some form of method/function pointer,
leaving Java as the odd one out.

If you go for closures, C has them with compiler extensions, the latest
version of the C++ has them, Objective-C now has blocks and C# has
lambdas.  Of the top 5, Java's equivalent, anonymous classes, is the most
verbose and distracting.

That said, when I use C# I do actually miss anonymous classes, just not for
those that contain a single-method.
On May 2, 2012 3:06 PM, "Casper Bang" <[email protected]> wrote:

> To those of us who live in the real world working within Tiobe's top 10,
> and specifically in a Java context, closures are definitely late to the
> party. In fact, within top 5, only C# offer closures as first-class
> functions.
>
> On Wednesday, May 2, 2012 7:07:57 PM UTC+2, KWright wrote:
>>
>> Closures were partying until 4am whilst objects were still a mere glint
>> in their father's eye.  Who are you calling "late"?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/javaposse/-/uve_FAZ3ccMJ.
> 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/javaposse?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" 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/javaposse?hl=en.

Reply via email to