News for hackers. Stuff that matters.
Re:Functional Programming Doesn’t Work (and what to do about... by ajross on Tuesday December 29, 2009 @12:56PM (#1020882)
I think the first part of your hypothesis is correct, but not quite the second. Most imperative languages support deep recursion and reentrancy, which means that they're a proper superset of (most of) functional languages. You may need to create a "closure" by hand and pass it around, but there's nothing that's fundamentally impossible. The example in the article about adding a side effect and cross-dependency to a deep function really isn't possible in functional terms without changing the design (i.e. adding the state to the function's interface).

There are no comments on this comment yet.