May 26, 2016
On Thu, May 26, 2016 at 04:24:10PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
> On 05/26/2016 02:44 PM, Seb wrote:
> > If you want RCStr to be adapted it has to be a drop-in replacement for string.
> 
> With all the criticism leveled against string, I thought more of the opposite. This is an opportunity to get it right. -- Andrei

I'm not sure what criticism you're referring to. The only one I can think of is autodecoding, which isn't really an inherent part of string being immutable(char)[], which I think is a fine idea.


T

-- 
The most powerful one-line C program: #include "/dev/tty" -- IOCCC
May 27, 2016
On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote:
> * Fast: use the small string optimization and various other layout and algorithms to make it a good choice for high performance strings

For inspiration see:

- Vladimir recommends `tempCString`
- Nikolay has https://bitbucket.org/sibnick/inplacearray.git

Original thread:

https://forum.dlang.org/post/msrlumbobhpuljvhwrlh@forum.dlang.org
May 27, 2016
On Thursday, 26 May 2016 at 17:32:33 UTC, Jack Stouffer wrote:
> *bikeshedding*: How about RCString, because the convention for D names is to be explicit most of the time.

+1
May 27, 2016
On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote:
> RFC: what primitives should RCStr have?

It should _safely_ convert to `const(char)[]`.
May 27, 2016
On 5/27/16 7:07 AM, Marc Schütz wrote:
> On Thursday, 26 May 2016 at 16:11:22 UTC, Andrei Alexandrescu wrote:
>> RFC: what primitives should RCStr have?
>
> It should _safely_ convert to `const(char)[]`.

That is not possible, sorry. -- Andrei
May 27, 2016
I post this only as a warning to others.

Imagine being the kind of person who isn't certain he could actually get Hello World past the D compiler  -but (and?) sees the subject "Our Sister" and immediately thinks:
"oh, Alexandrescu must be referring to his sister who is a doctor and did the art on the book cover".

   ---Welcome to the world of the PL trainspotter.---

Shoot-me shoot-me shoot-me.

It gets worse: I'm at the supermarket the other day, and the guy at the checkout has a strong Africaans accent.
I find myself saying to him; "umm if you right now, like hypothetically, heard the sound of hooves  -would you think of horses or zebras"
No lie. Try working *that* into a brief conversation about whether you have a store loyalty card.

Forget  the Star Wars allusion  -think Aliens ...when the Ripley character mercifully torches the wretched mutant clones of herself.

I was an actual programmer once.

please, somebody ..kill .. me


May 27, 2016
On Friday, 27 May 2016 at 17:08:33 UTC, Pete wrote:
> ...
Please don't derail this conversation. If you have a complaint please make it in a separate thread and tag it OT.
May 27, 2016
>>and tag it OT.<<

read the subject line slowly Jack

..but I appreciate your witty use of the word derail.

If anyone calls, Jack and I will be over at stack overflow gleefully closing down the derailers there.


On Friday, 27 May 2016 at 17:37:20 UTC, Jack Stouffer wrote:
> On Friday, 27 May 2016 at 17:08:33 UTC, Pete wrote:
>> ...
> Please don't derail this conversation. If you have a complaint please make it in a separate thread and tag it OT.


May 27, 2016
On Friday, 27 May 2016 at 19:35:58 UTC, Pete wrote:
> read the subject line slowly Jack


Sorry about that. I use the web interface and everything is grouped together even if it doesn't have the same subject line, so I didn't see that you changed it.


May 27, 2016
On 05/27/2016 03:35 PM, Pete wrote:
> If anyone calls, Jack and I will be over at stack overflow gleefully
> closing down the derailers there.

Thanks for that. Not sure what your moniker is there, but I noticed a good number of solid answers to D questions on SO.

Regarding the title, it was actually making a subtle point: if it's not marked as [OT] it's on topic! :o)


Andrei