Why is D unpopular, redux.
mee6
mee6 at lookat.me
Fri May 27 16:42:26 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`.
>
> [1]: https://phobos.dpldocs.info/std.meta.staticMap.html
You can do more than just map, you'd probably have to include
more helper types to get the same behavior. Which should really
be built into the language, which is what C++ did.
More information about the Digitalmars-d
mailing list