# SE-0380: \`if\` and \`switch\` expressions

**URL:** <https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899>\
**Category:** Proposal Reviews\
**Created:** [December 7, 2022, 5:47pm UTC](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899 "2022-12-07T17:47:41Z")\
**Posts on this page:** 4\
**Page:** 8

<div class="post-metadata">

**Author:** ![jeremy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jeremy](https://forums.swift.org/u/jeremy)\
**Post date:** [January 19, 2023, 11:25am UTC](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899/145 "2023-01-19T11:25:24Z")

</div>

> [@sspringer](#):
>
> What then about _removing_ `… ? … : … ` in favor of `if … else … `?

That was discussed above, and rejected.

---

<div class="post-metadata">

**Author:** ![ecs](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ecs](https://forums.swift.org/u/ecs)\
**Post date:** [January 19, 2023, 7:11pm UTC](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899/146 "2023-01-19T19:11:11Z")

</div>

You are missing the parentheses `{ }()`. Between looking like a function and using the editor to inspect types, it should be clear.

---

<div class="post-metadata">

**Author:** ![hborla](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/hborla/32/27563_2.png) [@hborla](https://forums.swift.org/u/hborla)\
**Post date:** [January 20, 2023, 10:04pm UTC](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899/147 "2023-01-20T22:04:21Z")

</div>

Thank you everyone for the lively and constructive review discussion! The proposal has been **accepted with modifications**.

> [@\[Accepted with modifications\] SE-0380: \`if\` and \`switch\` expressions](https://forums.swift.org/t/accepted-with-modifications-se-0380-if-and-switch-expressions/62695):
>
> The [review](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899) of [SE-0380: if and switch expressions](https://github.com/apple/swift-evolution/blob/main/proposals/0380-if-switch-expressions.md) ran from December 7th to December 30th. Feedback was generally positive; many reviewers noted that the usability of if expressions in other languages is missed in Swift, and selection statements producing a single value in each branch is a common pattern across their Swift code. Most of the discussion focused on whether the narrow scope of the proposal is an acceptable resting place for if and switch expressions. Overall, the Language Workgroup b…

Holly Borla  
Review Manager

---

<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:** [January 20, 2023, 11:18pm UTC](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899/148 "2023-01-20T23:18:05Z")

</div>

Closed on January 20, 2023, 11:18pm UTC



[Previous page](https://forums.swift.org/t/se-0380-if-and-switch-expressions/61899.md?page=7)
