As far as I can tell, `canIndex` shouldn't need to check for `isSomeChar!(ElementType!S)`. It's probably left over from a previous refactoring. The difference between `str[0]` and `str.front` stems from an avoidance of `front` with strings, but since this is the overload which doesn't use strings, it shouldn't matter here (probably missed in a previous refactoring as well). The condition in the second `static if` is fine and is really what the first one should be. Functionally, this code is fine, but it does look like it could use to be cleaned up a bit more due to what you've pointed out.