ifnt instead of ifn’t
Comment on ifn't
olafurp@lemmy.world 9 months ago
I’d take a not
or “if not” operator tbh.
Appoxo@lemmy.dbzer0.com 9 months ago
Comment on ifn't
olafurp@lemmy.world 9 months ago
I’d take a not
or “if not” operator tbh.
ifnt instead of ifn’t
Lmaydev@programming.dev 9 months ago
It has a not keyword t’s used for pattern matching.
if (x is not null)
olafurp@lemmy.world 9 months ago
It also has a
!=
.Lmaydev@programming.dev 9 months ago
Pattern matching is different.
olafurp@lemmy.world 9 months ago
Yeah, I just said it since you used it with null. I used it a lot for enums
Patches@sh.itjust.works 9 months ago
Stuff can be two things