Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

functional programming in the java language

Name: Anonymous 2007-06-08 11:04 ID:zBdqBvbC

http://www.ibm.com/developerworks/library/j-fp.html

now, this is where the fun bit shows up:


Listing 1. A closure in disguise


Runnable worker = new Runnable()
{
  public void run()
  {
    parseData();
  }
 };


The method parseData is literally enclosed (hence the name "closure")

Name: Anonymous 2007-06-09 6:22 ID:PJyY1WTD

>>8
Extreme step? Java's OOP is not even good to begin with.

Why would you even CONSIDER making it functional?
Because poor men who know their shit and still are forced to do Java at work, or forced to defend it in a web sight would want to make Java look productive, even if it's only an attempt in self-deception.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List