Ascii matters
bearophile
bearophileHUGS at lycos.com
Wed Aug 22 17:07:52 PDT 2012
Jonathan M Davis:
> But given that you can use ubyte[] just fine
The data I am processing is not generic octets, like 8 bits
digitized by some old A/D converter, they are chars, and I expect
to see strings when I print them :-)
> and the fact that using ASCII really shouldn't be encouraged,
For generic text I agree with you, using UTF-8 is safer and
better.
But there is plenty of scientific/technical text-encoded data
that is in ASCII, and for both practical and performance reasons
in D I want to process it as a sequence of chars (or a sequence
of ubytes, as you say). So for some kinds of data that
encouragement is a waste of your time.
Bye,
bearophile
More information about the Digitalmars-d
mailing list