If and only if this is true, then D has done well and I'm unafraid of duck-typing here.
Re: Relaxing the definition of isSomeString and isNarrowString
Andrew Godfrey via Digitalmars-d Sun, 24 Aug 2014 11:20:57 -0700
The OP and the question of auto-decoding share the same root
problem: Even though D does a lot better with UTF than other
languages I've used, it still confuses characters with code
points somewhat. "Element type is some character" is an example
from OP. So clarify for me:
If a programmer makes an array of either 'char' or 'wchar', does
that always, unambiguously, mean a UTF8 or UTF16 code point? E.g.
If interoperating with C code, they will never make the mistake
of using these types for a non-string byte/word array?
- Relaxing the definition of isSomeStr... Andrei Alexandrescu via Digitalmars-d
- Re: Relaxing the definition of ... H. S. Teoh via Digitalmars-d
- Re: Relaxing the definition of ... Jonathan M Davis via Digitalmars-d
- Re: Relaxing the definition... Andrei Alexandrescu via Digitalmars-d
- Re: Relaxing the definition of ... Andrei Alexandrescu via Digitalmars-d
- Re: Relaxing the definition... via Digitalmars-d
- Re: Relaxing the defini... Kiith-Sa via Digitalmars-d
- Re: Relaxing the de... via Digitalmars-d
- Re: Relaxing t... Andrei Alexandrescu via Digitalmars-d
- Re: Relaxi... Andrew Godfrey via Digitalmars-d
- Re: Re... via Digitalmars-d
- Re: Re... ketmar via Digitalmars-d
- Re: Re... Dmitry Olshansky via Digitalmars-d
- Re: Re... ketmar via Digitalmars-d
- Re: Re... Dmitry Olshansky via Digitalmars-d
- Re: Re... Andrew Godfrey via Digitalmars-d
- Re: Re... via Digitalmars-d
- Re: Re... Andrew Godfrey via Digitalmars-d
- Re: Re... H. S. Teoh via Digitalmars-d
- Re: Re... Vladimir Panteleev via Digitalmars-d