News for hackers. Stuff that matters.
Re:Functional calisthenics by dozzie on Thursday October 19, 2017 @05:34PM (#15511728)
> Nitpick, but why "m = new Math() s = m.sin(x)" would be "the OOP way" instead of "x.sin" ?

Because you can't do the latter post-hoc. You can't add hyperbolic functions by yourself if your standard library didn't anticipate them. Well, in Ruby you can and it's a standard practice to pollute this way classes at random, and in Python you can as well, though it's frowned upon, but certainly you cannot in C++ or Java.

There are no comments on this comment yet.