Should I Rust or should I Go? - eviltoast

I think some raised points are relevant…

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

    Huh, ok. I thought something like match = 0 in an old script might break a more recent version.

    But you may very well be correct.

    • UlrikHD@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      match isn’t a protected keyword like if is.

      match = 0
      match match:
          case 0:
              print(0)
          case _:
              print(1)
      

      Is legal and will give print out 0.