It's pretty clear to me that class methods weren't designed in at all
Because they're not very useful. If we're using a feature checklist method to evaluate object systems, then CLOS or Scala or something else is going to win.
If you want APL you know where to find it. @classmethod isn't any more inconvenient than knowing the three (it is just 3 right?) ways to define a Ruby class method.
@classmethod isn't any more inconvenient than knowing the three (it is just 3 right?) ways to define a Ruby class method.
It might not be any less convenient than any one individual Ruby alternative. The fact that there's only supposed to be one way to do it in Python, and that one way might not fit all use cases very well, is inconvenient, depending on the use case. I don't find this a particularly controversial viewpoint.
1
u/steven_h Aug 13 '13
Because they're not very useful. If we're using a feature checklist method to evaluate object systems, then CLOS or Scala or something else is going to win.