I dun a DIP, possibly the best DIP ever

Walter Bright newshound2 at digitalmars.com
Sun Apr 26 10:20:49 UTC 2020


On 4/24/2020 6:31 PM, Manu wrote:
> On Sat, Apr 25, 2020 at 7:00 AM Walter Bright via Digitalmars-d 
> <digitalmars-d at puremagic.com <mailto:digitalmars-d at puremagic.com>> wrote:
> 
> 
>     Let's not fall into the mode of only looking at the way C++ did it and not
>     seeing other ways. C++ has problems (like not having arrays) that lead it in
>     different directions for solving array-like problems.
> 
> 
> It is so predictable that you will eventually produce a sentence like this 
> whenever I suggest anything.

I could have phrased that better.

> I can't imagine a reason to change my proposal. The only reason I would consider 
> changing it is if you can make your (like-arrays) proposal work... but it 
> doesn't. I explored that a lot, believe it or not. I really wanted to believe it 
> could work.

I want to make sure it won't work, too, before abandoning it. I can understand 
finding that frustrating :-)


>     What do other languages do? How are things like this expressed in mathematics?
> 
> C++ uses `...`, and they are the only language that has anything remotely like this.
> Javascript also uses `...` for something similar-ish, so the web guys should 
> find it familiar too.

I don't remember Javascript doing that, though it's been 20 years since I worked 
on the JS compiler. Maybe it's a later addition.


More information about the Digitalmars-d mailing list