←back to thread

498 points azhenley | 8 comments | | HN request time: 1.153s | source | bottom
1. ronnier ◴[] No.45767895[source]
Immutability was gaining huge traction with Java... then large parts of the industry switched to golang and we hardly make anything immutable.
replies(3): >>45768303 #>>45768524 #>>45769298 #
2. antonvs ◴[] No.45768303[source]
Go is the new PHP.
replies(1): >>45770096 #
3. ottah ◴[] No.45768524[source]
I would kill for an immutable error type
4. XorNot ◴[] No.45769298[source]
Go desperately needs support for immutable structs that copy cleanly.

I want to be able to write `x := y` and be sure I don't have mutable slices and pointer types being copied unsafely.

5. LogicHound ◴[] No.45770096[source]
Much like PHP, you can actually get stuff done unlike a lot of other programming languages.
replies(1): >>45770182 #
6. antonvs ◴[] No.45770182{3}[source]
Oh? Which “lot of” other programming languages can’t you “actually get stuff done” in? Are you sure the problem lies with the programming language?
replies(2): >>45770313 #>>45771403 #
7. LogicHound ◴[] No.45770313{4}[source]
I find there are some environments where you have a positive feedback loop while working in them. PHP is one of them, Go is another at least for me.

I find many of languages I am constantly fighting with dependency managers, upgrades and all sorts of other things.

8. danenania ◴[] No.45771403{4}[source]
It’s an exaggeration perhaps but I get the sentiment. FP is elegant and beautiful and everything, but it can lead you to spend all day puzzling out the right abstractions for some data transformation that takes 5 minutes with a dumb for loop in Go.