165
edits
(Created page with "=Introduction= One of the coolest features of modern higher programming languages like C# or Java, is the concept of generic programming, in which you can have methods or cla...") |
No edit summary |
||
Line 1: | Line 1: | ||
=Introduction= | =Introduction= | ||
One of the coolest features of modern higher programming languages like C# or Java, is the concept of generic programming, in which you can have methods or classes that work for different types at runtime. C++ also offers a similar mechanism with the concept of templates, with the difference that they have to be resolved at compilation time, for more details see https://learn.microsoft.com/en-us/cpp/extensions/generics-and-templates-visual-cpp?view=msvc-170. | One of the coolest features of modern higher programming languages like C# or Java, is the concept of generic programming, in which you can have methods or classes that work for different types at runtime. C++ also offers a similar mechanism with the concept of templates, with the difference that they have to be resolved at compilation time, for more details see the following [https://learn.microsoft.com/en-us/cpp/extensions/generics-and-templates-visual-cpp?view=msvc-170 link]. | ||
But did you know you can also achieve something similar with C introduced in C11? | But did you know you can also achieve something similar with C introduced in C11? |
edits