4 ms·
> What do you mean 'beyond'? It's not like there are many other languages that have compile-time polymorphism. (Java, Go, C, etc., don't.) Java does, it's call
by c-cube 6y ago
> What do you mean 'beyond'? It's not like there are many other languages that have compile-time polymorphism. (Java, Go, C, etc., don't.)
Java does, it's called generics. Also D, rust, Ada, free pascal, nim, and most statically typed languages from the last 3 decades (even Go is finally getting them ). Still can't see why C++ is closer to ML than C, since it's literally an almost compatible superset of C.
- otabdeveloper4 6y ago> Java does, it's called generics. No, Java is still pointers to Object and dynamic dispatch under the hood. Generics didn't change this at all. > Still can't see why C++ is closer to ML than C, since it's literally an almost compatible superset of C. ATS is also 'literally an almost compatible superset of C'.