---
title: "Comment by Mark on \"Have you seen a Frozen Object?\" | Hashnode"
description: "I like the idea of immutability and I&#39;m glad you highlighted it. I think one of the better things to happen to software engineering is that people got a bit"
url: "https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638/comment/5cb630c35d6e9c583408a6cb"
---

[Discussion](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638)

Comment [Have you seen a Frozen Object?](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638)

[Mark](https://hashnode.com/@mverleg)

[Apr 16, 2019](https://hashnode.com/posts/have-you-seen-a-frozen-object/5cb60d715d6e9c583408a638/comment/5cb630c35d6e9c583408a6cb)

I like the idea of immutability and I'm glad you highlighted it.

I think one of the better things to happen to software engineering is that people got a bit more afraid of mutable state. Having immutable objects really rules out a lot of problems.

It's also one of the nice innovations in Kotlin compared to Java: 1) lists are immutable by default, and 2) trying to mutate them is a compile error, rather than runtime.

I like the statically-typed version more, but it's good to see it can be used in Javascript.
