understanding why you would ever use identity. maybe performance? is it somehow tied to immutability? immutability to me continues to be a far off concept that is accepted as a "best practice", but the reasons as to why that is are buried, vague or strawman-ish. "it will prevent bugs".
eclipse generates equals and hashcode implementations and i think that is simply the cleaner route. what am i missing that i should do more research on? i just am not interested in dealing identity related issues in day to day programming. It seems equality is the way to go in terms of being practical and keeping complexity to a minimum. |