4 ms·
Assignment is evil (most of the time): http://news.ycombinator.com/item?id=1117217 http://news.ycombinator.com/item?id=1117217 That's because it's relatively r
by loup-vaillant 17y ago
Assignment is evil (most of the time): http://news.ycombinator.com/item?id=1117217 http://news.ycombinator.com/item?id=1117217
That's because it's relatively rarely needed: http://www.info.ucl.ac.be/~pvr/paradigms.html http://www.info.ucl.ac.be/~pvr/paradigms.html (I don't recall the HN submission.) The paper says that any feature in a programming language makes it more difficult to analyse it. First class functions are one of them. Named state (with assignment) is another. So, when such a feature isn't needed (for, say, modularity), the complexities it introduces are unnecessary.