D on hackernews

Jacob Carlborg doob at me.com
Wed Sep 21 09:18:49 PDT 2011


On 2011-09-21 15:52, Timon Gehr wrote:
> On 09/21/2011 09:37 AM, bearophile wrote:
>> Andrei Alexandrescu:
>>
>>> http://hackerne.ws/item?id=3014861
>>>
>>> Apparently we're still having a PR issue.
>>
>> I think the Wikipedia D page needs to be rewritten, leaving 80-90% of
>> its space to D (meaning D2).
>>
>
> Yes, that is important. Wikipedia is usually the first place people go
> looking for information, and much of the information given there is
> horribly outdated/wrong and mostly only concerns. Many people think
> what's on Wikipedia is true. [citation needed]
>
> "For performance reasons, string slicing and the length property operate
> on code units rather than code points (characters), which frequently
> confuses developers.[27]"
>
> The link at [27] only says that many programmers that don't had have to
> handle unicode have trouble understanding how unicode works initially.
> It is not a D thing in any other way than that D actually supports
> unicode natively. Yet the 'D strings are strange and confusing' argument
> comes up quite often on the web, probably because many feel they are
> competent enough to discuss the language after having read the Wikipedia
> article.

Ruby pre 1.9 behaves similar. Well, actually Ruby pre 1.9 is not 
encoding aware at all, if I recall correctly.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list