Source

Alt text:

A screenshot from the linked article titled “Reflection in C++26”, showing reflection as one of the bullet points listed in the “Core Language” section

  • rimjob_rainer@discuss.tchncs.de
    link
    fedilink
    arrow-up
    3
    ·
    2 months ago

    You have to see it as “root”-mode, it gives you the means to do stuff you need to do but cannot do otherwise. Most times it’s for workarounds for problems you can’t solve. If you use reflection you are fully responsible.

    Of course you normally shouldn’t use it, in 10 years I used it maybe one or two times. It’s more of a last resort.