Why is D unpopular, redux.

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri May 27 17:10:28 UTC 2022


On Friday, 27 May 2022 at 16:30:33 UTC, Paul Backus wrote:
> On Friday, 27 May 2022 at 15:21:20 UTC, zjh wrote:
>> On Friday, 27 May 2022 at 15:13:55 UTC, zjh wrote:
>>
>>
>> The `...` accompanying `sequence index` is very powerful!
>> `All sorts of strange skills` .
>> This is not a `simple tuple` or `static foreach` can 
>> match.It's too powerful.
>
> The D equivalent of C++ `...` is [`staticMap`][1] from 
> `std.meta`.

  Zjh is talking about builtin functional style fold expressions 
applied to parameter packs and std:: integer_sequence.

It can be very convenient for summing sizes etc, but I have found 
the use cases to be limited in real code.

maybe zjh could show some examples?



More information about the Digitalmars-d mailing list