Empty VS null array?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Oct 18 09:55:46 PDT 2013
On 10/18/13 9:26 AM, Max Samukha wrote:
> *That's* bad API design. readln should be symmetrical to writeln, not
> write. And about preserving the exact representation of new lines,
> readln/writeln shouldn't preserve that, pure and simple.
Fair point. I just gave one possible alternative out of many. Thing is,
relying on client code to distinguish subtleties between empty and null
strings is fraught with dangers.
Andrei
More information about the Digitalmars-d
mailing list