Re:Rise of Kotlin: A Programming Language for the Next Gener...
by tiuPapa on Thursday July 05, 2018 @12:40PM
(#17464681)
I guess C++ -> Golang is debatable, maybe Python -> Golang?
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by geoka9 on Thursday July 05, 2018 @12:45PM
(#17464734)
If I remember correctly, one of the motivators for Go was the desire to avoid having to use C++ by the original authors. That said, I agree that Pyhon -> Golang fits in that trend too.
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by pjmlp on Thursday July 05, 2018 @03:17PM
(#17465974)
True, but they dumbed Go so much down that they hardly attracted anyone used to write modern code in C++.
https://commandcenter.blogspot.com/2012/06/less-is-exponenti...
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by erik_seaberg on Friday July 06, 2018 @04:15AM
(#17469793)
To be fair, Googlers can't write modern C++ because they have a critical mass of legacy code that has never been exception-safe. Avoiding RAII kneecaps the whole language badly.
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by repolfx on Saturday July 07, 2018 @06:41AM
(#17477956)
Google doesn't avoid RAII, they just avoid exceptions.
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by erik_seaberg on Saturday July 07, 2018 @08:26PM
(#17481449)
The beauty of RAII is that every resource is tied to the lifetime of an object, and every object is always in a usable state. Having to call extra open/close methods and check error codes breaks these invariants, and leads to objects with bad fidelity to the normal copy and move semantics the language is built on.
Re:Rise of Kotlin: A Programming Language for the Next Gener...
by valw on Thursday July 05, 2018 @01:13PM
(#17464956)
Totally agree - and "new paradigms" isn't the same thing as "choke-full of paradigms". What's more, there's as much value in taking things away than in adding them (how about classes for example?)
There's a lot of value in using simpler (but modern) languages in production instead of something choke-full of paradigms. Creators of popular languages seem to more or less agree with that (e.g. Java -> Kotlin, C++ -> Golang, Scala -> Dotty/Scala3).