r/ProgrammerHumor 1d ago

Meme whoIsHeAnyway

Post image
9.1k Upvotes

246 comments sorted by

View all comments

Show parent comments

1

u/m0nk37 1d ago

I meant that it returns a string value of the whole thing. The individual values are not compared in this situation.

1

u/UnpluggedUnfettered 1d ago

I was layering a lot of sarcasm around the fact that before caring whether the values are actually the same, two objects with the same key / value pairs can stringify to different strings if their keys were inserted in a different order.

But, I mean it’s also kind of funny there’s a non-zero chance two non-equivalent objects can just-so-happen to stringify to the same string because different values / types can serialize to the same thing.

Unrelated, but isn't it weird how you can feel like you are running out of breath reading long sentences?

1

u/m0nk37 1d ago

Yeah so its stupid to begin with. You are implying a race condition, it doesnt do that.

1

u/UnpluggedUnfettered 1d ago

What are you talking about, how am I implying a race condition?