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 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On Friday, 27 May 2022 at 17:10:28 UTC, Ola Fosheim Grøstad wrote: >maybe zjh could show some examples?
|
May 28, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to deadalnix | 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 It's not Take your time with |
May 28, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On Friday, 27 May 2022 at 18:47:22 UTC, Ola Fosheim Grøstad wrote: >It is just syntax sugar.
Do you want to go back to |
May 27, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to deadalnix | 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 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | 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.
|
May 28, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zjh | 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?
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 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | 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 |
May 28, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zjh | On Saturday, 28 May 2022 at 06:17:56 UTC, zjh wrote: >No Never heard that expression, is it Chinese? >you don't understand the beauty of 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 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On Saturday, 28 May 2022 at 08:18:16 UTC, Ola Fosheim Grøstad wrote: >like dancing with handcuffs. It means |
May 28, 2022 Re: Why is D unpopular, redux. | ||||
---|---|---|---|---|
| ||||
Posted in reply to zjh | 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 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). |