What is the difference between introspection and reflection?

前端 未结 3 944
耶瑟儿~
耶瑟儿~ 2021-01-30 03:58

Can anyone explain from a language/environment agnostic perspective the difference between these two notions?

Also is there a set of conditions that programming language

3条回答
  •  攒了一身酷
    2021-01-30 04:52

    Reflection is a mechanism composed of two techniques :

    1. Introspection

      The ability for a program to examine itself

    2. Intercession

      The ability for a program to modify itself (his behaviour or his state)

    Ref. https://fr.wikipedia.org/wiki/R%C3%A9flexion_(informatique)#Introspection_et_intercession

    My reference is a french page because the english page doesn't refers directly to the term intercession.

提交回复
热议问题