2 ms·
Better than nothing but worse than the C++ solution of returning a const reference which can be checked at compile time. Both are just immutable views on top o
by fauigerzigerk 9y ago
Better than nothing but worse than the C++ solution of returning a const reference which can be checked at compile time.
Both are just immutable views on top of mutable containers. But in both C++ and Java it is trivial to create a truly immutable container of T. Not so in Go.