syntax sugar: std.path::buildPath instead of from!"std.path".buildPath

Seb via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 15 12:13:42 PST 2017


On Wednesday, 15 February 2017 at 18:51:40 UTC, Andrei 
Alexandrescu wrote:
> On 02/15/2017 12:18 PM, Seb wrote:
>>
>> uint getAttributes(R)(R name)
>> if (isInputRange!R && !isInfinite!R &&
>> isSomeChar!(ElementEncodingType!R) && 
>> !isConvertibleToString!R);
>>
>>
>> Now as this same block is used > 30x in Phobos one could argue 
>> that it
>> makes sense to use a convenience trait like:
>
> isStringLike. I wanted to add this for a while already. Please 
> do! -- Andrei

https://github.com/dlang/phobos/pull/5137


More information about the Digitalmars-d mailing list