gosu-lang/gosu — Issue #71: There is a String.NotBlank, but no String.Blank 
Author: chrisgow
Created: 2012-02-17 22:19:19+00:00
State: open

Playing around with Gosu today and noticed that there is a String.NotBlank enhancement function defined on String, but no function to determine if a string is blank. Leading to code that looks like:

if (not someString.NotBlank) {
// do something for a blank string
}

I thought that maybe NotBlank was a convenience method for !str.Empty, but they do behave differently.

Suggested enhancement function:

property get Blank() : boolean {
return GosuStringUtil.isBlank(this)
}