[Python-ideas] Re: Multiple dispatch transpilation

2021-03-16 Thread David Mertz
I quite like multiple dispatch. It's odd to claim it's not OOP, since a relatively old object-oriented system, the Common Lisp Object System (CLOS) uses this as it's fundamental construct. A long time ago, I wrote about and created an example library for multimethods. Lots of other folks have done

[Python-ideas] Re: Multiple dispatch transpilation

2021-03-16 Thread Greg Ewing
On 17/03/21 2:54 am, Marvin van Aalst wrote: it should in principle be possible to transform the code from |Class.method|to |method(class:type)|, *before compilation*essentially allowing the same optimizations. I don't think this transformation would help with anything. If the static analysis

[Python-ideas] Re: Multiple dispatch transpilation

2021-03-16 Thread Todd
Numba already provides as-needed JIT compilation and type annotations. I am not sure it supports multiple dispatch but if that was useful it could be added with decorators. I am not sure integrating this into the language will help much. On Tue, Mar 16, 2021, 10:07 Marvin van Aalst wrote: > Hi