Re: Distinction of null and empty [was Re: Ceylon language]
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
Re: Distinction of null and empty [was Re: Ceylon language]
"Jesse Phillips" wrote in message news:io7oov$21d8$1...@digitalmars.com... > spir Wrote: > >> This also leads to actual distinction of null and [] or "" for arrays & >> strings. Just dreaming... > > Really? You want this? I really like that a null array is equal to an > empty array. > 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".
Distinction of null and empty [was Re: Ceylon language]
spir Wrote: > This also leads to actual distinction of null and [] or "" for arrays & > strings. Just dreaming... Really? You want this? I really like that a null array is equal to an empty array. If you really care to find out if a string is null if(str is null)