# Result Builder Virtual ASTs

**URL:** <https://forums.swift.org/t/result-builder-virtual-asts/72926>\
**Category:** Compiler\
**Tags:** result-builder\
**Created:** [July 3, 2024, 9:38pm UTC](https://forums.swift.org/t/result-builder-virtual-asts/72926 "2024-07-03T21:38:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtsrodrigues](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mtsrodrigues/32/34169_2.png) [@mtsrodrigues](https://forums.swift.org/u/mtsrodrigues)\
**Post date:** [July 3, 2024, 9:38pm UTC](https://forums.swift.org/t/result-builder-virtual-asts/72926/1 "2024-07-03T21:38:52Z")

</div>

In my adventure with the swift compiler something that caught my attention and desire to implement is [Virtualized Abstract Syntax Trees (ASTs)](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0289-result-builders.md#virtualized-abstract-syntax-trees-asts) in future directions of result builder.  
I decided to try and I managed to successfully implement `buildVirtualFor`. So I was wondering if that's something still on the table and worth pursuing.

@John_McCall @Douglas_Gregor as the original authors do you have insight on this? Thanks!

---

<div class="post-metadata">

**Author:** ![John\_McCall](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/john_mccall/32/1351_2.png) [@John\_McCall](https://forums.swift.org/u/John_McCall)\
**Post date:** [July 4, 2024, 3:42pm UTC](https://forums.swift.org/t/result-builder-virtual-asts/72926/2 "2024-07-04T15:42:22Z")

</div>

I think now we’d probably want to do that by finding a way to make the builder invoke a macro.
