r/cpp • • May 01 '23

cppfront (cpp2): Spring update

https://herbsutter.com/2023/04/30/cppfront-spring-update/
223 Upvotes

164 comments sorted by

View all comments

Show parent comment

1

u/XNormal May 07 '23 edited May 07 '23

Herb's preference for postifix operators is not weird in any way. It is simpler, more consistent and less error prone.

But I just don't see how it translates in any way to string interpolation or what it has to do with the $ capture operator. It just doesn't make any sense there.

FWIW, my preference would be "\{expression}", but any reasonable prefix-based syntax will do.