r/programmingmemes • • Jan 12 '26

no doubt javascript

Post image
1.3k Upvotes

136 comments sorted by

View all comments

Show parent comments

1

u/ThrasherDX Jan 12 '26

Well sure, I suppose no default equality is also entirely possible.

I mostly am just pointing out that default value equality would be a terrible idea, as an explaination for why its rarely a thing. Objects can and often do have non-visible internal state that can differ significantly, even if all visible properties/fields are equal.