News for hackers. Stuff that matters.
Re:Go is boring, and that’s fantastic by erik_seaberg on Thursday July 02, 2020 @05:53PM (#23718504)
In a concurrent language, shared mutable state is the trap that Hoare's CSP book was urging us to avoid. Worse, in Go builtin maps are always writable yet parallel writes and reads can segfault. There's a sync.Map type but it isn't a drop-in replacement (because builtin maps don't implement any interfaces) and it isn't typesafe (because no generics).
Re:Go is boring, and that’s fantastic by tsimionescu on Saturday July 04, 2020 @07:32AM (#23731608)
Yes, Go has very bad primitives whichever way you look at them. I still think you can't say a language with built-in immutability is more boring technology than one with built-in mutability.

There's nothing stopping you from using Go's maps without mutation. You can go ahead and send copies of maps through channels, just like you would if they were really immutable. Sure, the interface is clunky, but so is every other interface in Go, so I don't see too much reason to complain here...