Multi dispatch in python– brilliant

This is brilliant .. .

One more level of abstraction above polymorphism and infact the logical step. I guess this is one reason i grew out of inheritance or OOPS as preached by java…

But no comments on the performance penalty this may have on the resultant code, though i suspect, it might still be a good idea if cythonizing (or for that matter C APIing) some parts(perhaps multimethod) of the code takes care of performance penalty…

It is ideas like this that convince me to keep my faith in programming as a profession..
And it is ten years old idea nay post… damn it i should have been more active about learning more about python

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s