Bjoern Hoehrmann (2013-10-29T14:25:41.000Z)
domenic at domenicdenicola.com (2013-11-02T19:09:24.946Z)
Allen Wirfs-Brock wrote: > You mean people want to do identity checks of the value of the property? Why? It might be helpful to look at it the other way around. If you spend a day chasing down a bug that boils down to the problem above triggered in some subtle way, would you say that the issue should have been caught in code review and there should have been tests for issues like this? Would you say it's safe to change a popular API from returning the same object to returning a different object every time? It is not diffcult to end up with code that does something like this: ```js var temp = a.example; ... if (...) { ... temp = b.example; } ... if (temp === a.example) { ... } else /* temp === b.example */ { ... } ``` which works fine so long as `a.example` returns the same object; if it does not, this would always take the `else` branch, but that is hard to spot and counter-intuitive considering such odd behavior is very rare.