I was waiting for the expansion statements. I just wonder why they decided on the syntax template for instead of for constexpr or for consteval. 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.
2 Comments
majoru@feddit.org · 1 pts · 152d
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.cmeerw@programming.dev · 1 pts · 152d
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.