Union of types in arguments of function

Ah, yeah, if the types aren’t defined before the function, then you can’t do this. But, to be clear, there is absolutely no performance difference one way or the other. The types that show up in the declaration just determine whether a particular method gets called. The “optimize the functions based on the content of these types” is always done for every input to every function, regardless of whether you’ve specified anything about the inputs or not.

1 Like