If you specify a type alias:
All it's codegen-ed uses will be const SomeAlias& which may be inefficient. This is probably optimized out by the compiler though it would be good to get some feedback on a "good practice" in this case.
At the very least it improves readability since using TypeAlias = U8 in C++ typically just means rename and programmers would not change the pass-by-ref/pass-by-value semantics of function signatures.
If you specify a type alias:
All it's codegen-ed uses will be
const SomeAlias&which may be inefficient. This is probably optimized out by the compiler though it would be good to get some feedback on a "good practice" in this case.At the very least it improves readability since
using TypeAlias = U8in C++ typically just means rename and programmers would not change the pass-by-ref/pass-by-value semantics of function signatures.