4 ms·
Syntax sugar is extra syntax to make an existing feature easier to use, syntax sugar has no runtime impact. Generics are not syntax sugar, they add functionali
by DougBTX 10y ago
Syntax sugar is extra syntax to make an existing feature easier to use, syntax sugar has no runtime impact.
Generics are not syntax sugar, they add functionality such as stricter compile-time type checking and improved run-time performance (e.g., C# can use unboxed primatives in generics)