<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 10 January 2014 02:05, Dicebot <span dir="ltr"><<a href="mailto:public@dicebot.lv" target="_blank">public@dicebot.lv</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thursday, 9 January 2014 at 15:14:04 UTC, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
However, I think to get the expected result from unicode you need<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
string y = "Hello".byGrapheme.retro.find(<u></u>'H').to!string;<br>
<br>
but I might be wrong.<br>
<br>
</blockquote>
<br></div><div class="im">
Bugger that. This is not an example of "D is good at strings!".<br>
</div></blockquote>
<br>
I have 0 ideas how are you going to get same functionality in C with strchr. This small line uses quite lot of features to be reliably unicode-correct.<br>
</blockquote></div><br></div><div class="gmail_extra">It's nice that it's unicode correct, but it's not nice that you have to be familiar with a massive amount of the standard library and you need to search through 4-5 (huge! and often poorly documented) modules to find the functions you need to perform _basic string operations_, like finding the last instance of a character...</div>
<div class="gmail_extra">My standing opinion is that string manipulation in D is not nice, it is possibly the most difficult and time consuming I have used in any language ever. Am I alone?</div></div>