←back to thread

498 points azhenley | 1 comments | | HN request time: 0.208s | source
Show context
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 #
1. 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.