Why was constness removed from Java and C#?

后端 未结 5 2032
予麋鹿
予麋鹿 2021-02-20 00:45

I know this has been discussed many times, but I am not sure I really understand why Java and C# designers chose to omit this feature from these languages. I am not int

5条回答
  •  花落未央
    2021-02-20 01:27

    As to why they did it those involved have said so:

    http://blogs.msdn.com/ericgu/archive/2004/04/22/118238.aspx http://blogs.msdn.com/slippman/archive/2004/01/22/61712.aspx also mentioned by Raymond Chen http://blogs.msdn.com/oldnewthing/archive/2004/04/27/121049.aspx

    In a multi language system this would have been very complex.

提交回复
热议问题