Evaluate a dynamic reflection API against AccessTools and Traverse
Author: pardeikeCreated Sep 8, 2026Updated Sep 8, 2026
Labelsenhancementneeds more info/work
Investigation for the Harmony 3 backlog.
A later comment in #586 proposes dynamic syntax for reflection operations. Its usefulness has not been established against the current AccessTools and Traverse APIs.
Evaluate a few concrete tasks, such as reading a private property or invoking an overload, before adding another public access model.
Completion criteria:
- Compare examples using the current APIs and a minimal proposed dynamic facade.
- Define overload resolution, generic members, ref/out behavior, null results and failure diagnostics.
- Assess runtime/dependency compatibility, especially the legacy targets, and measure any claimed reduction in overhead.
- Decide whether this belongs in Harmony, an optional utility package, documentation, or nowhere.
- Record the decision and evidence. Implementation is not required to close the investigation.
Do not assume an existing dynamic/event-driven AccessTools architecture; the proposal needs to be grounded in current source.
Follow-up to the exploratory proposal in #586. AccessTools; Traverse.
Source: pardeike/Harmony