News for hackers. Stuff that matters.
Re:Kotlin: A New Hope in a Java 6 Wasteland by kbenson on Tuesday September 29, 2015 @01:44PM (#10298028)
> I was talking about language-level abstractions.

And I've been trying to get people to at least define what they are talking about in every single comment I made. Kudos to you for doing so. :)

> Automatic memory management is what's known as an extra-linguistic feature.

While that makes your position easier to support (but it's not what the original comment stated, which is why I asked for clarification from them), I'm not sure I buy it entirely. I need an explanation why a language with more language level abstractions is worse than one with less, given that you can enforce the restriction of some abstractions. Why is artificially limiting yourself the better solution than enforcing restraint, which leaves the possibility to work outside those constraints when the conditions are correct?

Re:Kotlin: A New Hope in a Java 6 Wasteland by pron on Tuesday September 29, 2015 @02:29PM (#10298441)
Because what C++ has taught us that it's impossible to enforce restraint in a serious project[1], because the people enforcing the discipline change. The discipline enforced by you is different from that enforced by the team-lead to follow you, and by then the codebase lacks any discipline. That was exactly C++'s lesson, which is why people are weary of languages that say, "all you need is a bit of discipline".

[1]: This is less true of C++ today, when it's mostly a specialist language used by specialist teams working in fields that have always required a lot of restraint. They know how to do restraints (well, at least better than the industry at large).

Re:Kotlin: A New Hope in a Java 6 Wasteland by kbenson on Tuesday September 29, 2015 @03:11PM (#10298733)
> Because what C++ has taught us that it's impossible to enforce restraint in a serious project[1], because the people enforcing the discipline change.

So? the language's themselves change over the time frame you are looking at. You seem to be arguing that having the language enforce it is better than policy, but name one language that's seen any serious use that hasn't seen change to add new features over the last then years, of the exact sort you are saying cause problems. So we're supposed to entrust this to a third party that really doesn't care about our specific needs. The Java standards committee doesn't know who you are. And if they do, you are not a representative case of the vast majority of Java programmers. I would rather control my future, so I choose freedom with restraint.

I'm really not buying your C++ is niche argument. C++ is one of the top 3-5 languages in the world in every metric. Java is more popular, but not being the most popular has nothing to do with being niche. C++ is still in massive use in almost every industry. That is not niche. Using C++ as your go-to example and basing your argument on having lost so much market share as to be a niche language isn't really moving the discussion along. Shops switched to Java from many languages, not just C++, and for many reasons, not just because C++ features caused problems. That argument is far too simplistic and ignores far too many things for me to give it much credence.

Re:Kotlin: A New Hope in a Java 6 Wasteland by pron on Wednesday September 30, 2015 @01:34AM (#10301990)
> I'm really not buying your C++ is niche argument. C++ is one of the top 3-5 languages in the world in every metric.

If you see how Bjarne Stroustrup[1] describes C++ today, you'll probably agree that it's a niche language (he sees it that way today).

> That argument is far too simplistic and ignores far too many things for me to give it much credence.

Of course. But ignore it at your peril. If you want to use a language that is similar to C++ in many respects (many of the same respects that the industry complained about), you should at least acknowledge the risk and try to be damn sure that this is what you want or be sure that this wasn't a contributing factor to C++'s fall from dominance.

[1]: https://youtu.be/2egL4y_VpYg?t=12m9s