Why isn't skipOver(string, string) nothrow?

Per Nordlöw per.nordlow at gmail.com
Tue Oct 22 15:33:05 UTC 2019


Why isn't a call to

     skipOver(string, string)

nothrow?

I see no reason why it shouldn't be.

Further, this test should be qualifyable as nothrow:

@safe pure /* TODO nothrow @nogc */ unittest
{
     import std.algorithm.searching : skipOver;
     auto x = "beta version";
     assert(x.skipOver("beta"));
     assert(x == " version");
}


More information about the Digitalmars-d-learn mailing list