Re:Functional Programming Doesn’t Work (and what to do about...
by cousin_it on Tuesday December 29, 2009 @08:45AM
(#1020443)
Almost all code is initially written with the wrong assumptions.
[ Parent
| on HN ]
Re:Functional Programming Doesn’t Work (and what to do about...
by Deestan on Tuesday December 29, 2009 @09:22AM
(#1020496)
And it should(+) always be refactored to match the new assumptions in a meaningful way.
I get your point, I just meant that "doesn't work" is quite a stretch from "doesn't allow ugly global variable hacks".
(+) http://xml.resource.org/public/rfc/html/rfc2119.html#anchor3
Re:Functional Programming Doesn’t Work (and what to do about...
by foldr on Wednesday December 30, 2009 @05:33AM
(#1022255)
If there is information that needs to be accessible across several not-otherwise-very-interdependent modules of a program, then you need to have something with essentially all the properties of a global variable. That doesn't' necessarily mean that you need a single identifier with global scope, but it does mean that you need something with essentially the same properties.