Argumnentation against external function operator overloading is unconvincing

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 24 01:29:44 PDT 2016


On Thursday, 22 September 2016 at 14:33:36 UTC, Andrei 
Alexandrescu wrote:
> On 9/22/16 10:20 AM, Jonathan M Davis via Digitalmars-d wrote:
>> The main problem with moving them there is auto-decoding. 
>> front and popFront
>> for strings require std.utf in order to do their thing.

Druntime has it's own utf decoding code, necessary for foreach 
auto transcoding.
Moving that to a template and syncing it with the better 
optimized Phobos implementation would be a good thing.

> Yah, that's a little hurdle. -- Andrei

At least empty should go to object, could help to solve part of 
the wrong if (arr) usage.



More information about the Digitalmars-d mailing list