metacraft-labs / py2nim

A Python-to-Nim transpiler
MIT License
136 stars 8 forks source link

Generate generic functions #2

Closed alehander92 closed 6 years ago

alehander92 commented 6 years ago

Currently we always generate overloads for a function, if it exists with different signatures. Often, some of those overloads correspond to a single generic function.

We'll compare the final AST of function overloads and when it's the same, we'll generalize the args.