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

I’ve a very small working experience with Go, tried it on few personal projects to test the language. Globally I really like it, and I’ve been pleased by a lot of « features » (simplicity, explicitness, readability of the standard lib etc…).

One thing that I miss was an immutability story. You have values/references and, again I’m a beginner, I’ve the impression that passing references are favored. Wouldn’t it be nice if the compiler was able to check if you can mutate a reference or not? There are some proposals [1] that are discussed [2], that can be a nice evolution.

[1] https://github.com/romshark/Go-1-2-Proposal---Immutability

[2] https://github.com/golang/go/issues/27975



Agree, immutable values should be the top one in the needed-list. There are tons of immutable value proposals: https://github.com/go101/go101/wiki/Go-immutable-value-propo...




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

Search: