News for hackers. Stuff that matters.
Re:Functional Thinking after OO by jshen on Tuesday March 15, 2011 @12:15PM (#2328127)
You're example is too small for the differences to become clear. There isn't any OO in your code for example.
Re:Functional Thinking after OO by jshen on Tuesday March 15, 2011 @04:32PM (#2329238)
I can't edit my comment anymore, but I wanted to add some more detail.

Building larger programs is about clean abstractions. What your doing only needs basic functions for abstraction, but when you try to do something larger you'll begin to need/want more ways to abstract your code. Then the differences will become clear.

But, you punted by not actually handling the errors. As others comments show, your example may need more abstraction tools once you try to handle the errors :)