4 ms·
proper generics would be C++ but it is called templates and could be hardcore.. https://stackoverflow.com/a/498329/729738 https://stackoverflow.com/a/498329/72
by Avlin67 4y ago
proper generics would be C++ but it is called templates and could be hardcore..
https://stackoverflow.com/a/498329/729738 https://stackoverflow.com/a/498329/729738
.Net generics do have same issues mentioned in the article
- adgjlsfhk1 4y agoJulia gives you the same (but dynamic rather than static), but without the awful syntax.
- halter73 4y ago.NET 7 improves this with static abstract members in interfaces and generic math. https://github.com/dotnet/csharplang/issues/4436 https://github.com/dotnet/csharplang/issues/4436 https://devblogs.microsoft.com/dotnet/dotnet-7-generic-math/ https://devblogs.microsoft.com/dotnet/dotnet-7-generic-math/
- wyuenho 4y agoProper generics would be parametric polymorphism with full program type inference, i.e. an ML derivative.