# \[Macros\] Attached macros to methods and functions

**URL:** <https://forums.swift.org/t/macros-attached-macros-to-methods-and-functions/65531>\
**Category:** Discussion\
**Tags:** macros, attached-macros\
**Created:** [June 12, 2023, 7:04pm UTC](https://forums.swift.org/t/macros-attached-macros-to-methods-and-functions/65531 "2023-06-12T19:04:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mayoff](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/mayoff/32/613_2.png) [@mayoff](https://forums.swift.org/u/mayoff)\
**Post date:** [June 13, 2023, 2:31am UTC](https://forums.swift.org/t/macros-attached-macros-to-methods-and-functions/65531/6 "2023-06-13T02:31:29Z")

</div>

The original [declaration macros proposal](https://github.com/DougGregor/swift-evolution/blob/declaration-macros/proposals/nnnn-declaration-macros.md#body-macros) included “body” macros, which could replace the body of a function and thus, for example, perform something like the result builder transform.

After a few days of discussion, [Doug removed body macros from the pitch](https://forums.swift.org/t/pitch-declaration-macros/62373/27) with the comment

> - Removed function-body macros... for the moment. We'll come back to them.

So you should probably expect to see them again.

---

_[View the full topic](https://forums.swift.org/t/macros-attached-macros-to-methods-and-functions/65531)._
