Empirical data on the effects of immutability?

后端 未结 9 551
长情又很酷
长情又很酷 2021-01-01 19:03

In class today, my professor was discussing how to structure a class. The course primarily uses Java and I have more Java experience than the teacher (he comes from a C++ b

9条回答
  •  悲&欢浪女
    2021-01-01 19:46

    • Don't argue with the prof. You have nothing to gain.
    • These are open questions, like dynamic vs static typing. We sometimes think functional techniques involving immutable data are better for various reasons, but it's mostly a matter of style so far.

提交回复
热议问题