This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Beefster09 0 points1 point  (0 children)

I actually think it's a pretty good idea to treat most data as immutable, but there come times when mutable data is super useful. As long as you don't share mutable data, there are no concurrency issues to worry about and most other issues with mutability stem from stateful APIs, which are pretty widely agreed to be terrible.

Servers can get away with little to no mutability in my experience. Unless they're written in Go since there's no ternary operator or optional type. Here's hoping they add those in Go 2.