@[email protected] to Programmer [email protected] • 8 months agoifn'tprogramming.devimagemessage-square116fedilinkarrow-up1729arrow-down111
arrow-up1718arrow-down1imageifn'tprogramming.dev@[email protected] to Programmer [email protected] • 8 months agomessage-square116fedilink
minus-squareCavemanlink2•8 months agoYeah, I just said it since you used it with null. I used it a lot for enums
minus-square@[email protected]linkfedilink1•edit-28 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