Sean Kelly:

When I use algorithms on strings in D, I always cast them to ubyte[]. Which is a poor solution.

In Phobos we have "representation", and "assumeUTF" that are better than naked casts. I use them only sparingly (and I avoid cast), despite I use strings often.

Bye,
bearophile

Reply via email to