Replies: 1 comment 1 reply
-
The main reason I have against the policy of special-casing the empty string has to do with consistency in the API. Not every C# data type used by the library has a value that can represent emptiness. This means that in some cases, the Having said all that, I can also think of some arguments for special-casing the empty string as well so I'm certainly willing to reconsider my stance on the matter. May I ask what sparked this idea? Did you have a use case in mind for this change, or does it simply seem more intuitive to you? |
Beta Was this translation helpful? Give feedback.
-
Looking at ContainerRecord specifically, but the same situation exists ubiquitously... in properties such as Notes, the "set" property unconditionally writes the value. If the value is an empty string, should the ContainerRecord remove any existing entry in the vector instead of adding a blank entry (as it does today)? The spec doesn't say one way or the other, but it seems like a better policy.
Beta Was this translation helpful? Give feedback.
All reactions