4 ms·
I feel like Scala started a trend in language design, where every language adds features from other languages. Not because there's a need, but because some peop
by Cthulhu_ 6y ago
I feel like Scala started a trend in language design, where every language adds features from other languages. Not because there's a need, but because some people are used to language X.
Example: adding OOP in PHP and Javascript. In both examples, especially the first attempts, were half-baked. Why bolt on half a language feature? Both languages would be much better served with dependency management and / or modules, which for both languages came out of the community at first.
Counter-example would be Go, that resists change - especially if it's requested with a "this feature is in language X! I NEED it!". From the FAQ: https://golang.org/doc/faq#Why_doesnt_Go_have_feature_X https://golang.org/doc/faq#Why_doesnt_Go_have_feature_X (followed by some features other languages have. Generics / type arguments is one that will probably be added in an upcoming version of Go, but they only considered it once they fully understood the problem and need)
- mrkeen 6y ago> Counter-example would be Go, that resists change It will happen, just slower. Just as half-baked.
- valenterry 6y ago> Counter-example would be Go, that resists change Now it gets generics, so we are one step closer to Scala. :)
- mbo 6y agoEven with square-bracket syntax!
- still_grokking 6y agoJavaScript was OO form day one. There aren't even much languages that are so consequent OO like JavaScript. Everything is an object even functions. JavaScript is actually quite similar to Self (besides the syntax), which itself is a kind of a SmallTalk like language. It's hard to be more OO than that. :-)