Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Re: mutable state, I think these concerns are mostly overblown. These are problems we've been dealing with in the vast majority of mainstream languages for many years now....

Yes.

Do not minimise this.

For very large complex systems immutable state is very helpful.

> pass an "object" by reference in Go but do not want it to be mutated, I'll wrap it in an interface

Making the point.

Horses for courses, but this is picking the course for this nag.



100% agreed -- if it wasn't clear, I wasn't trying to downplay the importance of immutable state. Just saying that it's perfectly achievable in Go with a small bit of effort.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: