Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 (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)



> Counter-example would be Go, that resists change

It will happen, just slower. Just as half-baked.


JavaScript 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. :-)


> Counter-example would be Go, that resists change

Now it gets generics, so we are one step closer to Scala. :)


Even with square-bracket syntax!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: