• Caveman
      link
      311 months ago

      It also has a !=.

        • Caveman
          link
          211 months ago

          Yeah, I just said it since you used it with null. I used it a lot for enums

          • @[email protected]
            link
            fedilink
            1
            edit-2
            11 months ago

            The type matching is the most common thing I use it with. Combined with inline variables.

            if (x is string { Length: 5} s)
            {
                // do stuff with s
            }
            

            And switch expressions.

            As a side note inline variables are amazing haha