News for hackers. Stuff that matters.
Re:Go makes it easier to write correct, clear and efficient ... by csmnils on Friday May 10, 2019 @04:24AM (#19876064)
There is little code in the main article, but there is a link to a detailed Java vs. Go code comparison: https://yourbasic.org/golang/go-vs-java/
Re:Go makes it easier to write correct, clear and efficient ... by wcdolphin on Friday May 10, 2019 @10:28AM (#19878018)
That’s a bit of a straw man. 1. You are using go’s built in imaginary type, and writing one from scratch in Java. 2. That is no longer idiomatic Java. Use Autovalue and the comparison is a little more fair. The LOC and complexity still come out in go’s favor for this, no doubt. 3. Beating down on Java is fun, but with Kotlin interop and adoption rate, I think the comparison will become JVM vs X.
Re:Go makes it easier to write correct, clear and efficient ... by orbifold on Friday May 10, 2019 @11:47AM (#19878871)
I think you are misunderstanding the linked code. The imaginary type in the Go case is not build in.
Re:Go makes it easier to write correct, clear and efficient ... by wcdolphin on Friday May 10, 2019 @02:37PM (#19880829)
That is true.