Distinction of null and empty [was Re: Ceylon language]

Kagamin spam at here.lot
Thu Apr 14 23:54:49 PDT 2011


Nick Sabalausky Wrote:

> I've thought about that and I don't know how I feel about it. On one hand, I 
> can certainly image cases where the distiction between null and empty would 
> be useful. But OTOH, after having to put up with the nightmare of VB6's "One 
> million distinct ways to have a string that doesn't contain anything", I'm 
> hesitent at embracing extra ways to have "ain't nuthin' here".
> 

In our project we use

if(string.IsNullOrEmpty(str)){...}

almost everywhere
only in two places null matters.

T__T


More information about the Digitalmars-d mailing list