Metaprog can be abstruse

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Tue Jul 5 07:37:35 UTC 2022


On Monday, 4 July 2022 at 23:19:27 UTC, kdevel wrote:
> Then your example is prone to errors:
>
> ```
> immutable decimalRanks = iota(13).map!(p => 10.pow(p)).array; 
> // silent wrap around
> ```
>
> (unit)test to the rescue:

To be fair, original example also requires some testing.


More information about the Digitalmars-d mailing list