Skip to content

feat(rust): reflection (PR 4 of 7 Rust improvements) #4787

Open
Thorium wants to merge 2 commits into
fable-compiler:mainfrom
Thorium:pr/6-rust-reflection
Open

feat(rust): reflection (PR 4 of 7 Rust improvements) #4787
Thorium wants to merge 2 commits into
fable-compiler:mainfrom
Thorium:pr/6-rust-reflection

Conversation

@Thorium

@Thorium Thorium commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Adds reflection to Rust.
Part of the dependency chain.

Also makes the PropertyGet quotation pattern work: System.Reflection.PropertyInfo now erases to a shared FSharpPropertyInfo carrier (as UnionCaseInfo/MethodInfo already do), used by both reflection and quotations, so pi.Name works from either. The field getter is resolved from the type registry by name, like getValue(pi, v) => v[pi[0]] in JS/TS.

@Thorium
Thorium force-pushed the pr/6-rust-reflection branch 4 times, most recently from 1431b15 to cf67710 Compare July 15, 2026 21:57
@Thorium
Thorium force-pushed the pr/6-rust-reflection branch from cf67710 to 6a1e767 Compare July 15, 2026 23:02
@Thorium
Thorium force-pushed the pr/6-rust-reflection branch from 6a1e767 to e48e066 Compare July 20, 2026 06:38
@Thorium
Thorium force-pushed the pr/6-rust-reflection branch from e48e066 to 065119f Compare July 20, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant