Change Reference to Value

 

You have a reference object that is small, immutable, and awkward to manage.

Turn it into a value object.

To convert this to a value object, the key thing to do is verify that the object is immutable. If it isn’t, I don’t try to make this change, as a mutable value causes no end of painful aliasing.

posted @ 2007-05-15 16:42  南守拥  阅读(266)  评论(0编辑  收藏  举报