I think that what he's saying is that the names char, wchar, and dchar as UTF-8, UTF-16, and UTF-32 code points respectively make sense to you because you're used to them, but for anyone learning D (particularly those who are used to char in other languages being an ASCII character) don't find it at all intuitive or
obvious.

They should first realize this is another language.

Honestly, the only semi-reasonable alternative to char, wchar, and dchar that I
can think of would be utf8, utf16, and utf32. But then everyone would be
wondering where char was, and I'm not sure that it would really help any in the long run anyway. It would be more explicit though. But given char and wchar_t in C++, I really don't think that it's much of a stretch to use char, wchar, and dchar. The only thing really different about it is that D insists that char is
always a UTF-8 code unit rather than it really being useable as an ASCII
character.

That actually is an excellent idea, wiping all 3 of them and replacing with these.

--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Reply via email to