5 ms·
I could port it to Python if you want? ;) I probably wouldn't have done this when Python was my main language, though. That community has a much harder time lau
by garybernhardt 15y ago
I could port it to Python if you want? ;) I probably wouldn't have done this when Python was my main language, though. That community has a much harder time laughing at itself than Ruby's does.
- silentbicycle 15y agoMaybe C or k? ;)
- cbs 15y agoPython already has one base class to rule them all, `object`. From just the title I thought that's what the post was going to be about.
- Luyt 15y agoThe same thing in Python would require you to import all modules, and place all functions and classes in those modules in one class. Probably can be done, but whether it's useful?
- draegtun 15y agoFortunately the Perl community have no trouble laughing at itself either! So here's a port to Perl :) https://gist.github.com/1204277 https://gist.github.com/1204277 Moose's MOP makes this "port" quite easy (as does Perl having multiple inheritance!). Does mean it only works on Moose classes but a universal approach is also possible but it wouldn't be as succinct!