# What is the best way to spell a setter that can fail?

**URL:** <https://forums.swift.org/t/what-is-the-best-way-to-spell-a-setter-that-can-fail/56761>\
**Category:** Using Swift\
**Created:** [April 14, 2022, 8:57pm UTC](https://forums.swift.org/t/what-is-the-best-way-to-spell-a-setter-that-can-fail/56761 "2022-04-14T20:57:02Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![toph42](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/toph42/32/7807_2.png) [@toph42](https://forums.swift.org/u/toph42)\
**Post date:** [April 15, 2022, 3:59pm UTC](https://forums.swift.org/t/what-is-the-best-way-to-spell-a-setter-that-can-fail/56761/10 "2022-04-15T15:59:50Z")

</div>

Looks like there was [a pitch for throwing getters/setters](https://forums.swift.org/t/throwable-accessors/20509/33) but the actual implementation we got in Swift 5.5 for throwing getters came from [a different proposal](https://github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md).

---

_[View the full topic](https://forums.swift.org/t/what-is-the-best-way-to-spell-a-setter-that-can-fail/56761)._
