Re:Why Class?
by DanWaterworth on Monday November 25, 2013 @03:26AM
(#6793040)
Now depending in the type of programming, you may need to preserve state, which can be quite challenging in a purely functional environment.
What makes you say that?
Ultimately, classes are about code organization and reuse. Done properly, it leads to a well maintained program. Functional programming...it still needs to be organized somehow, whether you put them in classes or namespaces, the last thing you want is spaghetti code. Now depending in the type of programming, you may need to preserve state, which can be quite challenging in a purely functional environment.