3 ms·
Generics mostly, the syntax is the same. Structs with associated methods are a rudimentary form of classes. I have to say I'm not a programmer nor I've studied
by JetSpiegel 13y ago
Generics mostly, the syntax is the same. Structs with associated methods are a rudimentary form of classes.
I have to say I'm not a programmer nor I've studied Computer Science, more a Script Kiddie, and functional languages are something esoteric that I understand on a very shallow way.
- masklinn 13y ago> Generics mostly, the syntax is the same. That's the syntax for "generics in C-like languages" since C++, FWIW. So at its core, the inspiration there is probably C++ more than it is Java.
- pcwalton 13y agoWell, you're not wrong--Java's generics and Rust's generics were very influenced by ML's. So really you're seeing the ML influence :) (Though Rust's generics really borrow more from those of Haskell, since it has more fully-featured typeclasses as opposed to just eqtypes like SML.)
- JetSpiegel 13y agohttp://tvtropes.org/pmwiki/pmwiki.php/Main/OlderThanTheyThink http://tvtropes.org/pmwiki/pmwiki.php/Main/OlderThanTheyThin...