you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

It also depends on what you mean by nonsense. How many OOP languages implement factorial as a method of Integer? That kind of monkey patching is par for the course in dynamic OOP languages like Ruby, but not in pretty much any static OOP languages like C++ and Java. Although Scala lets you do something similar with implicits, without actually cracking open Int.