May 28, 2022

On Friday, 27 May 2022 at 17:10:28 UTC, Ola Fosheim Grøstad wrote:

>

maybe zjh could show some examples?

... with concept is the most powerful thing of 'c++'!

May 28, 2022

On Friday, 27 May 2022 at 21:17:04 UTC, deadalnix wrote:

>

Stop adding new crap int he language, unless it fixes existing crap. Once the existing crap is in decent shape, we'll think about .... Endless pursuing the next shinny object- is how we got where we are.

It's not that serious. The core problem is too difficult. You can solve the easy ones first.

Take your time with important bugs.

May 28, 2022

On Friday, 27 May 2022 at 18:47:22 UTC, Ola Fosheim Grøstad wrote:

>

It is just syntax sugar.

Syntax sugar is competitiveness.

Do you want to go back to c++98?
I always use the latest version of 'c++',
It's too powerful.

May 27, 2022
On 5/27/2022 2:17 PM, deadalnix wrote:
> On Friday, 27 May 2022 at 10:07:53 UTC, zjh wrote:
>> I also hope that d can have `...` operator.
>> It turns out that `'manu'` has a `'dip'`, which is obviously a good thing. Why not add it?

Because it did not work in general. I don't recall the specifics, but it should be there in the discussion of it.
May 28, 2022

On Saturday, 28 May 2022 at 01:12:38 UTC, Walter Bright wrote:

>

Because it did not work in general. I don't recall the specifics, but it should be there in the discussion of it.

C++'s combination of ... and concept and index sequence is very powerful .
I hope d can also have it. I hope manu can continue that dip. I haven't seen him for a long time.

May 28, 2022

On Saturday, 28 May 2022 at 00:27:55 UTC, zjh wrote:

>

On Friday, 27 May 2022 at 17:10:28 UTC, Ola Fosheim Grøstad wrote:

>

maybe zjh could show some examples?

... with concept is the most powerful thing of 'c++'!

Parameter packs is a last resort, so well written code will not use it all that often. If ... worked with all sequences then it would make more sense. C++ has too many special cases and D does not need more special cases either.

(Folding with subtraction is also problematic.)

May 28, 2022

On Saturday, 28 May 2022 at 05:59:05 UTC, Ola Fosheim Grøstad wrote:

If ... worked with all sequences then it

>

would make more sense.

No ... for me is like dancing with handcuffs.
you don't understand the beauty of (...) and (...,...) etc.

May 28, 2022

On Saturday, 28 May 2022 at 06:17:56 UTC, zjh wrote:

>

No ... for me is like dancing with handcuffs.

Never heard that expression, is it Chinese?

>

you don't understand the beauty of (...) and (...,...) etc.

Ok, but I don’t think D will add folding over the comma-operator like C++. Also, you can implement you own fold in D.

Have you looked at Haskell? It has some of that beauty of dancing with handcuffs.

May 28, 2022

On Saturday, 28 May 2022 at 08:18:16 UTC, Ola Fosheim Grøstad wrote:

>

like dancing with handcuffs.

It means too much trouble.

May 28, 2022

On Saturday, 28 May 2022 at 09:18:02 UTC, zjh wrote:

>

On Saturday, 28 May 2022 at 08:18:16 UTC, Ola Fosheim Grøstad wrote:

>

like dancing with handcuffs.

It means too much trouble.

Ok, I misunderstood. I think proper tuples that can hold both types and values is the best approach, then add operators on tuples. C++ and D got it wrong by having some weird special cases for parameters, which is just annoying. Cannot be fixed for C++, but it is fixable for D.

Solid and generally useful tuples is the only basic feature D is missing (and move semantics, but not sure if that qualifies as basic).