String Prefix Predicate

"Nordlöw" via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 18 04:28:22 PDT 2014


On Saturday, 16 August 2014 at 20:59:47 UTC, monarch_dodra wrote:
> I don't get it? If you use "byDchar", you are *explicitly* 
> decoding. How is that any better? If anything, you are 
> *preventing* the (many) opportunities phobos has to *avoid* 
> decoding when it can...

byDchar and alikes are lazy ranges, ie they don't allocate.

They also don't throw exceptions which is prefferably in some 
cases.

Read the details at
https://github.com/D-Programming-Language/phobos/pull/2043


More information about the Digitalmars-d-learn mailing list