You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convenience/optimization idea: Analyze the call-sides of the create functions and gather which type parameters are used. Create create functions accordingly #34
For example, if there is only one call Create<int, string>(), then instead of having the inner functions all generic they can just be like the ordinary functions for closed types. The entry function can then switch the known type parameter combinations.
Keep in mind that the call side can still inject open type parameters. Hence, we can't drop generic create functions, even if we do this optimization/convenience feature
Create<int, string>(), then instead of having the inner functions all generic they can just be like the ordinary functions for closed types. The entry function can then switch the known type parameter combinations.