foreach vs static foreach on compile time tuples
David T. Oxygen
TKC847567 at outlook.com
Sun Aug 24 12:30:08 UTC 2025
On Sunday, 24 August 2025 at 08:35:57 UTC, Per Nordlöw wrote:
> Which are the pros and cons of foreach vs static foreach on a
> compile time tuple in D in terms of compiler performance and
> resource usage? Does static foreach generate more ast
> duplications?
--
Yes, it will make the compile-time longer, but usually you can
ignore.
If you don't have `static foreach(int i;0..99999999)`,you are no
need to worry about it.
More information about the Digitalmars-d-learn
mailing list