tortilla icon indicating copy to clipboard operation
tortilla copied to clipboard

Compile time argument type inspection

Open emlyn opened this issue 5 years ago • 0 comments

If instead of generating functions in defwrapper we generated macros, these could then inspect the arguments at compile time. If any arguments are literals (e.g. 1, "foo", nil...), or have type hints (e.g. ^long x, ^String (foo y)), this could be used to further restrict the set of matching methods at compile time, so that at run time there are fewer overloads to consider.

emlyn avatar May 11 '20 15:05 emlyn