#csharp Code Golfers rejoice! There is a new string-is-not-null-or-empty check in town! 😈
@analogrelay I'm not gonna say this is the most immoral thing I've seen this week, but top 5 definitely.

@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

@analogrelay a perfect example of how code golf can make code less readable/logical