#csharp Code Golfers rejoice! There is a new string-is-not-null-or-empty check in town! 😈

@analogrelay this is so cursed

also how many orders of magnitude it is slower than string.IsNullOrEmpty

@ezhevita It’s probably just the same performance! I’d expect the compiler to lower it to “s is not null && s.Length > 0”
SharpLab

C#/VB/F# compiler playground.

@analogrelay good to know they invested in performance here

can’t wait to see this stunt in some junior’s pull request and ask him WHY