Random string samples & unicode - Reprise
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Sep 12 17:40:06 PDT 2010
On 09/12/2010 07:28 PM, Jonathan M Davis wrote:
> On Sunday 12 September 2010 17:09:04 bearophile wrote:
>> Andrei Alexandrescu:
>>> This goes into "bearophile's odd posts coming now and then".
>>
>> I assume you have missed most of the things I was trying to say,
>> maybe you have not even read the original post. So I try to explain
>> better a subset of the things I have written.
>>
>> This is a quite common piece of Python code:
>>
>> from random import sample d = "0123456789" print "".join(sample(d,
>> 2))
>
> You do seem to try to do a lot of things that most other folks never
> even think of doing, let alone have a need to. This is one of them.
> That's probably why Andrei reacted the way that he did.
No, it's not that at all. It's just this:
> I'll add it to Bugzilla later. But even if you remove that bug,
> forcing me to use dstrings in the whole program is strange. Or maybe
> it's a good thing, and the natural state for D programs is to just
> use dstrings everywhere. Andrei may offer his opinion on the
> situation.
I think it's not difficult to infer I wouldn't advocate using 32 bits
characters everywhere.
Andrei
More information about the Digitalmars-d
mailing list