On 2/15/2017 10:51 AM, Andrei Alexandrescu wrote:
isStringLike. I wanted to add this for a while already. Please do! -- Andrei

What I've found messy and confusing with string overloads in Phobos is there are at least 6 kinds of strings:

1. auto decoding dynamic arrays
2. not auto decoding arrays
3. static arrays
4. aggregates with an 'alias this' to a string
5. ranges of characters
6. something convertible to a string

These classifications seem to be tested for in a unique ad-hoc manner in every 
case.

I'd like to take a step back and devise a consistent taxonomy of these things, based on how Phobos uses them, before adding more names.

Reply via email to