• Womble@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    But how far should that be taken should 8 == 8 return false because one is an unsigned int and the other is signed? Or 0.0 == 0.0 where they are floats and doubles? You can make a case for those due to a strong type system but it would go against most peoples idea of what equality is.