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

  • Elvith Ma'for@feddit.org
    link
    fedilink
    arrow-up
    14
    ·
    edit-2
    3 months ago

    Not a C++ dev, but looking at Java, which has reflection: Reflection allows to inspect and modify runtime attributes of classes, interfaces, fields and methods. Even, when you don’t know their names at compile time.

    Basically take any object and just ask “what are your (even private) fields?” and then happily modify them, or call these methods, or…