I was waiting for the expansion statements. I just wonder why they decided on the syntax templatefor instead of forconstexpr or forconsteval. Would be much more consistent IMO.
The main reason for the template keyword in the syntax is because the block is first parsed as a template, and then instantiated. This means you might have to use typename or template keywords in your code now.
I was waiting for the expansion statements. I just wonder why they decided on the syntax
template forinstead offor constexprorfor consteval. Would be much more consistent IMO.The main reason for the
templatekeyword in the syntax is because the block is first parsed as a template, and then instantiated. This means you might have to usetypenameortemplatekeywords in your code now.