News for hackers. Stuff that matters.
Re:Golang’s most important feature is invisible by adgjlsfhk1 on Saturday January 22, 2022 @09:41PM (#30043106)
All of it? For a specific example, try doing any functional programming in Java and compare it to pretty much any other language.
Re:Golang’s most important feature is invisible by aphexairlines on Saturday January 22, 2022 @10:01PM (#30043210)
Java's not helpful for FP, but that's an odd example to bring up in a discussion about Go, which is also statement-oriented.
Re:Golang’s most important feature is invisible by 41b696ef1113 on Saturday January 22, 2022 @09:55PM (#30043185)
I am far from a Java guy, but that seems like a poor example. Functional programming is not in the wheelhouse of Java. In the same way, it would be unfair to criticize Haskell for its object-oriented style.
Re:Golang’s most important feature is invisible by azth on Sunday January 23, 2022 @03:52AM (#30044676)
Incidentally, golang is much worse for FP.
Re:Golang’s most important feature is invisible by kaba0 on Sunday January 23, 2022 @09:03AM (#30046182)
It really is not that bad, and it is at least possible, both to incorporate it partly (stream api, immutable objects, especially with records) or go full-on with vavr.