Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

immutable #6

Open
xiaxiazhu opened this issue Nov 19, 2016 · 0 comments
Open

immutable #6

xiaxiazhu opened this issue Nov 19, 2016 · 0 comments

Comments

@xiaxiazhu
Copy link
Owner

xiaxiazhu commented Nov 19, 2016

  • 一言以蔽之:在对象以及对象引用被修改的时候,返回新的对象来保证在immutable声明的数据结构内存空间里面的数据不会被意外修改。当然,人家做了很多优化,包括不限于并发、内存复用。

  • 参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant