Re:Objects vs. Functions round 1: Currying vs. Instantiation
by devwebee on Tuesday March 11, 2014 @08:59PM
(#7383300)
Not sure those two cases are really interchangeable. It doesn't seem like a very good example. By introducing an object that way you're coupling your functions that work on pure data to an instance. Now to multiply two numbers you need an instance of Calc. I'd suggest something like this instead:
[ Parent
| on HN ]