# \#syntactic-sugar

**URL:** https://forums.swift.org/tag/syntactic-sugar/705.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [\[Pitch\] Introducing do-let-catch for Cleaner Error Handling](https://forums.swift.org/t/pitch-introducing-do-let-catch-for-cleaner-error-handling/75348)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 18\
**Last updated:** [October 21, 2024, 10:43pm UTC](https://forums.swift.org/t/pitch-introducing-do-let-catch-for-cleaner-error-handling/75348 "2024-10-21T22:43:04Z")

</div>

I recently encountered a scenario where I found the existing syntax in Swift unnecessarily complex and less readable: let data: Data let response: URLResponse do { (data, response) = try await URLSession.shared.data(…

---

## [If/guard-let-catch for conveniently accessing both Result type cases](https://forums.swift.org/t/if-guard-let-catch-for-conveniently-accessing-both-result-type-cases/58492)

<div class="topic-metadata">

**Author:** [@Jeehut](https://forums.swift.org/u/Jeehut)\
**Replies:** 42\
**Last updated:** [December 27, 2022, 12:43am UTC](https://forums.swift.org/t/if-guard-let-catch-for-conveniently-accessing-both-result-type-cases/58492 "2022-12-27T00:43:43Z")

</div>

Motivation A few weeks ago, I had asked on Twitter if developers prefer error handling in Swift by using throws vs. returning Result. Of the 102 votes, 45% voted for "I prefer Result", which is 40% more than the 32% who …
