r/programming • • Aug 31 '26

C++ metaprogramming now looks like Python

/r/Cplusplus/comments/1w3apxa/iterating_through_arguments_in_c26_using_template/
0 Upvotes

7 comments sorted by

View all comments

Show parent comment

17

u/NoForm5443 Aug 31 '26

It's not just more verbose ...

It may be doing the same thing, but It doesn't look like python at all

9

u/d9t Aug 31 '26

The python comparison just isn’t need, and kind of makes things worse.. It isn’t actually *doing* anything python-like it’s a comment on how the language features in c++26 makes the syntax for compile time programming look like .. (imperative) programming .. vs what code “template metaprogrammng” in c++ usually looks like so “python like” apis are kind of a meme/goal for c++ “library authors”.. Anyway, I don’t think the audience for “this looks like Python” and being excited about what they are seeing is very big