• @[email protected]
    link
    fedilink
    01 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)
    
    • mfz
      link
      fedilink
      11 year ago

      Well, not all languages allow for fun programming :)