Re:Go makes it easier to write correct, clear and efficient ...
by jeremyjh on Friday May 10, 2019 @06:56AM
(#19876647)
Definitely Java has a very similar problem, of having so much rote boilerplate in every single class that its hard to see essential deviations from the pattern that you need to understand in order to follow the code. I have not ever seen this problem in a Python code base. It is not littered with "if err != nil" for one thing, but Java has exceptions too and still has this problem.
I attribute it more to a static type system that lacks features I've grown use to in modern languages. Most of my experience in Java is 1.6 and prior so its possible code bases have improved since then.
Re:Go makes it easier to write correct, clear and efficient ...
by 0xdeadbeefbabe on Friday May 10, 2019 @11:44AM
(#19878832)
Oooh I like the prospect of check(errProducingFunc()) https://github.com/golang/proposal/blob/master/design/go2dra...
Re:Go makes it easier to write correct, clear and efficient ...
by deepsun on Friday May 10, 2019 @09:52AM
(#19877672)
And Kotlin nowadays looks very much like Python, but it's same Java, just with syntactic sugar.
Re:Go makes it easier to write correct, clear and efficient ...
by marcosdumay on Friday May 10, 2019 @11:52AM
(#19878936)
KotlinLooksLikePythonWouldLookIfJavaDevelopersNamedThings
Compared to python or Java? Well written python basically resembles Go. And most Java I've come across tries to spread logic across class boundaries so you never get to have all the code in front of you at one time.