Re:Show HN: I implemented generics in my programming language
by jadedtuna on Friday December 19, 2025 @10:17AM
(#46326759)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.