r/cpp • u/pavel_v • Apr 24 '26
C++26: Structured Bindings can introduce a Pack
https://www.sandordargo.com/blog/2026/04/22/cpp26-structured-bindings-packs
101
Upvotes
r/cpp • u/pavel_v • Apr 24 '26
View all comments
Show parent comment
1
u/Ateist Apr 27 '26 edited Apr 27 '26
Pizza in microwave oven doesn't cause the house to burn down.
Wrong variable processed can do a lot of damage in some cases.
Sometimes difficulty is good, as it prevents abuse of things that are dangerous and harmful.
Packs are choke full of dangers:
so they should be reserved for the cases where you absolutely can't avoid using them.