@JPDev@programming.dev to Programmer Humor@programming.dev • 10 months agoifn'tprogramming.devimagemessage-square125fedilinkarrow-up1753arrow-down111
arrow-up1742arrow-down1imageifn'tprogramming.dev@JPDev@programming.dev to Programmer Humor@programming.dev • 10 months agomessage-square125fedilink
minus-squareCavemanlinkfedilink2•10 months agoYeah, I just said it since you used it with null. I used it a lot for enums
minus-square@Lmaydev@programming.devlinkfedilink1•edit-210 months agoThe 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
Yeah, I just said it since you used it with null. I used it a lot for enums
The type matching is the most common thing I use it with. Combined with inline variables.
And switch expressions.
As a side note inline variables are amazing haha