• anton@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    1
    ·
    2 days ago

    Is there ever an instance when you do want to compare object identity instead of “equal”-ness?

    Maybe if you have to check if the object is one you already hold a lock for or account for some similar consequence of questionable architecture.