The Artima Developer Community
Sponsored Link

Java Buzz Forum
Closures in C# 2.0 (Did you hear that Sun?)

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Closures in C# 2.0 (Did you hear that Sun?) Posted: Sep 17, 2004 6:13 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Closures in C# 2.0 (Did you hear that Sun?)
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Since we know that Sun will change its mind if it see's a feature being added to C#... maybe we will see closures added to Java soon (Java 6?). Joe Walnes ported the Ruby closure code from Martin Fowlers latest entry on the subject. Let's looks at one: Ruby def managers(emps) return emps.select {|e| e.isManager} end C# public List Managers(List emps) { return emps.FindAll(delegate(Employee e) { return e.IsManager; } } I would love to have this in Java. I would love it even more if: delegate() isn't needed

Read: Closures in C# 2.0 (Did you hear that Sun?)

Topic: Die, default namespaces, die Previous Topic   Next Topic Topic: Cedric releases TestNG 1.0 released

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use