News for hackers. Stuff that matters.
Re:Functional Programming in C++ (2013) by gnuvince on Saturday July 25, 2015 @06:08PM (#9949225)
Anyone, anywhere could modify x, which is what makes reasoning about this code difficult. When your entire program is a collection of mutable state that can be mutated by any piece of code, understanding what's going on becomes really difficult if not impossible. One thing that people are adopting from FP is to limit what is mutable, and when possible make state explicit.
Re:Functional Programming in C++ (2013) by pekk on Sunday July 26, 2015 @10:59PM (#9953112)
That isn't true. I don't understand why you can't use a language that offers encapsulation.