3 ms·
They are all useful. Functional: reducing side-effects improves potential for concurrency; Object-Oriented: create a new type and overload operators to make it
by wangchow 10y ago
They are all useful. Functional: reducing side-effects improves potential for concurrency; Object-Oriented: create a new type and overload operators to make it feel like the abstract mathematical idea it represents; Procedural: subroutines are pretty much indispensable.
- runT1ME 10y agoExplain why FP doesn't do 'create a new type and overload operators to make it feel like the abstract mathematical idea it represents' better with say, parametric polymorphism?
- ryandvm 10y agoJust my two cents, but regardless of whether it is a more pure representation, I'd say it is empirically more difficult for the average, object-oriented human to wrap their brain around. At least on that measure, the object oriented paradigm has demonstrated some success.
- runT1ME 10y agoI don't see how. One gives you guarantees, one is a lie. I've done a lot of both, the OO model is strictly inferior in almost every way.
- runT1ME 10y agoI don't see how. One gives you guarantees, one is a lie. I've done a lot of both, the OO model is strictly inferior in almost every way.