DEV Community

loading...

Discussion on: Why I’m So Frustrated With Go

Collapse
_andys8 profile image
Andy

"... don't mutate it": But who verifies you didn't? Your tooling should. Think about tests, formatting and linting. People could just write perfect code and not use these tools either ;)

Immutability leads to better structured code if people think about which values actually change, which not and how they depend on each other.