you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 2 years 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

  • source
  • parent