What is the correct way to test for an empty string?

Gary Willoughby dev at nomad.so
Tue Jul 16 12:38:24 PDT 2013


On Tuesday, 16 July 2013 at 19:33:13 UTC, bearophile wrote:
> The right, safe and readable way is to use std.array.empty:
>
> if (myString.empty)

OMG, of course. Thanks!



More information about the Digitalmars-d-learn mailing list