• Eq0@literature.cafe
    link
    fedilink
    arrow-up
    12
    ·
    2 days ago

    Math nerd to the rescue!

    “==“ is either math for constantly equal (there are no situations in which they are different) or programming for boolean equal, aka the question of are these two things equal.

      • Routhinator@startrek.website
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 days ago

        Moreover, in programming a single = sets the value on the left to the value on the right, while == (or in some languages ===) means to compare the values (and === is explicit).

        Then there are the various forms of not equal (!=) and greater than/less than or equal ( <=, >= )