JPDev@programming.dev to Programmer Humor@programming.dev · 11 months agoifn'tprogramming.devimagemessage-square127fedilinkarrow-up1773arrow-down111
arrow-up1762arrow-down1imageifn'tprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 11 months agomessage-square127fedilink
minus-squareLmaydev@programming.devlinkfedilinkarrow-up1·edit-211 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
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