Herb Sutter

Results 239 comments of Herb Sutter

> We sampled three Vale projects. One had 111 declarations, and only 35 assignments. That's only 21% assignments! The other two were even lower, at 20% and 6%. Thanks, data...

I tried an experiment where every local variable is emitted as `const` by default, just to see what would happen in the cppfront code and test cases. Here are some...

> Named functions are also constant, `type` also implies constant, These are inherently static (compile-time) and ODR-necessary in a statically typed language. Unlike objects, which are inherently run-time dynamic values...

Thanks for waiting. The `$` capture applies to the immediate context, in this case the string. So if you want the function expression to capture `args` by pointer (reference), you...

Interesting... my mental model for capture (including interpolation) has always been that it's referring to capture in the immediate context, here the string. This example is very interesting, because maybe...

More: It's accidental that your example works... I did not intend to support nested captures like that. It happens to work because the code currently scans forward for the next...

Thanks. Do you have a suggested fix? For example, do you prefer removing that fallback overload, changing it to `(auto&&...)`, or something else?

Feature/regular expression metafunction #904

feat: evaluate program-defined metafunctions (based on #797) #907

Rework of is that adds new functionalities or simplify implementation #701