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

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 15 10:51:40 PST 2017


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


More information about the Digitalmars-d mailing list