3 ms·
> This is why classes are cool You may be unaware, but there are vast similarities between the object system of R and Python, mostly due to their common inheri
by disgruntledphd2 5y ago
> This is why classes are cool
You may be unaware, but there are vast similarities between the object system of R and Python, mostly due to their common inheritance from the Art of the Metaobject protocol. They look very different (generic functions vs classes), but they are equally extensible.
The trouble with R's systems is that there's three of them, and people use whichever works without really understanding any of them, but all the tools are there.
- tomrod 5y agoAware, yes. The point I made before was pointing out that you can implement what you want in Python relatively easy. That R has a wild west set of systems is exactly my point.
- disgruntledphd2 5y agoI don't really get what you mean. You said, in the context of ensuring conceptually difficult parts of a model/method were implemented: > This is why classes are cool. You can extend them, modify them, and so on. Perhaps we should teach this more to fellow data scientists. I pointed out that both R and Python have similar object systems. > ou can implement what you want in Python relatively easy. I don't get why this is necessarily true, but I might be missing something. Can you clarify?
- warlog 5y agoThe only thing worse than an object system is...three object systems. I never quite know what is the cool kid implementation, and I don't even like oo.