There can be no side effects on immutable objects, and caching a reference to an immutable object is always safe from alias problems.

 
  • 不可变对象上没有副作用,并且缓存不可变对象的引用总是安全的,不会出现别名问题。
今日热词
目录 附录 查词历史