# Mutating a struct secretly performs reassignment?

**URL:** <https://forums.swift.org/t/mutating-a-struct-secretly-performs-reassignment/78881>\
**Category:** Using Swift\
**Tags:** value-semantics\
**Created:** [March 27, 2025, 12:49pm UTC](https://forums.swift.org/t/mutating-a-struct-secretly-performs-reassignment/78881 "2025-03-27T12:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![scanon](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/scanon/32/2445_2.png) [@scanon](https://forums.swift.org/u/scanon)\
**Post date:** [March 27, 2025, 1:24pm UTC](https://forums.swift.org/t/mutating-a-struct-secretly-performs-reassignment/78881/3 "2025-03-27T13:24:43Z")

</div>

Exactly what Slava said.

You may be interested in the [`yielding` coroutine accessors pitch](https://forums.swift.org/t/pitch-3-yielding-coroutine-accessors/77956) which would formalize `_modify` into a full-fledged language feature.

---

_[View the full topic](https://forums.swift.org/t/mutating-a-struct-secretly-performs-reassignment/78881)._
