2 ms·
> No immutable types (in Go) The typical answer is opaque types with only readonly methods exported. Not elegant, but it’s there. I guess it’s arguably not a “
by oefrha 7mo ago
> No immutable types (in Go)
The typical answer is opaque types with only readonly methods exported. Not elegant, but it’s there. I guess it’s arguably not a “good way” to do it.
- joeblubaugh 7mo agoIn fact it was “the Java way” for many years and “useless getters” was always a big complaint about Java.