On Sunday, 7 January 2018 at 12:40:22 UTC, Bastiaan Veelo wrote:
1) Should we have a reference in the docs for std.traits to std.range.primitive : ElementType?
wouldn't hurt i guess
2) Should phobos contain a version without the special narrow string behavior?
see ElementEncodingType http://dpldocs.info/experimental-docs/std.range.primitives.ElementEncodingType.html
3) Are there other differences between my version and the phobos version?
The Phobos one works on any range, not just built-in arrays. It also returns an answer (void) if you pass it something that has no element type, whereas yours would be a compile error.