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

Reply via email to