• Knusper@feddit.de
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    In the languages I know, i-=-1 or x=3 are not expressions, but rather statements, so they do not evaluate to a value.

    So, this would be a compiler error:

    a = (x=3)