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
Since UniStr is a Union, it can't ever be type stable, however I may be able to annotate the return so that it knows that it is the UniStr union type, or at least Str, and not just Any.
This is what I mean. UniStr type should be identified as a return type - only then - inside functions we can hope to have "small union" benefit (i.e. we construct a UniStr and then use it in the same function - now we need barrier functions to have it properly type-inferred in hot loops).
Probably some benchmarking is needed here as simply annotating the return value of constructor might also harm performance.
This probably will be a problem when dynamically constructing
UniStr
:The text was updated successfully, but these errors were encountered: