What matters is the amount of space it takes up. What matters is the content of the string in the context of parsing it and displaying it. And in all of these scenarios -- the only relevant scenarios for using a string -- a null string and an empty string should almost always have identical behavior.
Really? I can think of at least a couple of good reasons it matters (i/o related).
What matters is the amount of space it takes up. What matters is the content of the string in the context of parsing it and displaying it. And in all of these scenarios -- the only relevant scenarios for using a string -- a null string and an empty string should almost always have identical behavior.
There is a big difference between not knowing a value and knowing the value is empty.
1 reply →
The length of your comment is 51 characters.