Skip to content

Commit 128e2d6

Browse files
oli-obkNadrieril
andauthored
Update src/2025h2/reflection-and-comptime.md
Co-authored-by: Nadrieril <[email protected]>
1 parent aa367a4 commit 128e2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/2025h2/reflection-and-comptime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@ zig's approach to comptime from a very high level is effectively
153153
we do not experiment with this approach at this time, because the compiler is not set up in a way to permit proc macros from accessing type information from the current crate.
154154
While there are ongoing refactorings that go into the direction of potentially allowing more of that in the future, that future seems to be more than 5 years away at my best guess.
155155

156-
* the compiler is not set up to perform codegen while type information is already available. It possibly never will, and it would be an immense amount of work to get there. I'm doing lots of refactorings that would need to be done for sth like that anyway, even if the goal is just better incremental and general compilar architecture.
156+
* the compiler is not set up to add AST nodes while type information is already available. It possibly never will, and it would be an immense amount of work to get there. I'm doing lots of refactorings that would need to be done for sth like that anyway, even if the goal is just better incremental and general compilar architecture.
157157
* there are too many open language questions about it that we haven't even started to discuss
158158
* a hacky comptime reflection prototype that works for just tuples and that works with regular const eval exists right now, so pursueing the definitely possible implementation will pay off in a shorter term.

0 commit comments

Comments
 (0)