Le Thu, 23 May 2013 00:31:38 -0700,
Glenn Linderman <v+pyt...@g.nevcal.com> a écrit :
> 
> I suspect the point was not that add can be described as doing single 
> dispatch (it can't), but rather that add could possibly be
> implemented in terms of lower-level functions doing single dispatch.
> If that was the point, perhaps the next level point is trying to be
> that single dispatch is a sufficient mechanism that can be augmented
> (as above) to handle more complex cases.

This is true, but as it is of everything Turing-complete. Generic
functions don't add anything that you can't already do manually (for
example with custom registries) :-)

Regardless, I also agree that single-dispatch is much easier to reason
about, and good enough for now.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to