Metaprog can be abstruse

user1234 user1234 at 12.de
Mon Jul 4 09:43:11 UTC 2022


On Monday, 4 July 2022 at 09:40:45 UTC, Bastiaan Veelo wrote:
> Not necessarily.
> ```d
> immutable decimalRanks = iota(10).map!(p => 10.pow(p)).array;
> ```
>
> -- Bastiaan.

Hi, to this alternative I'd say that it's not self documenting.
So it still has 50% of the initial problem.




More information about the Digitalmars-d mailing list