3 ms·
Right, but C-style generics really are not generics at all. As other comments point out, they effectively are conpile-time if statements. A generic function wou
by jadedtuna 10mo ago
Right, but C-style generics really are not generics at all. As other comments point out, they effectively are conpile-time if statements. A generic function would automatically instantiate and generate required code for different call types, and perform the correct operations. The C-style "generics" are a conpile-time switch statement, switching on types.