News for hackers. Stuff that matters.
Re:From Java to Go, and Back Again (2016) by hocuspocus on Saturday June 23, 2018 @03:27PM (#17382944)
> The creator of the MutableFoo instance can make all sorts of changes to the instance but then pass it around as a Foo that can't be modified.

Until you cast the object...

You should use truly immutable data types unless you specifically need otherwise, most modern languages and libraries encourage you to do so.

There are no comments on this comment yet.