News for hackers. Stuff that matters.
Re:One base class to rule them all. by garybernhardt on Tuesday September 06, 2011 @12:38AM (#2964140)
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.
Re:One base class to rule them all. by draegtun on Thursday September 08, 2011 @03:06PM (#2975199)
Fortunately the Perl community have no trouble laughing at itself either! So here's a port to Perl :) 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!

Re:One base class to rule them all. by cbs on Tuesday September 06, 2011 @08:02AM (#2965193)
Python 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.
Re:One base class to rule them all. by Luyt on Tuesday September 06, 2011 @11:32AM (#2965928)
The 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?
Re:One base class to rule them all. by silentbicycle on Tuesday September 06, 2011 @12:55AM (#2964192)
Maybe C or k? ;)