[swift-evolution] Modernize Switch/Case Statements?

Joseph Essin josephessin at gmail.com
Wed Jan 27 19:35:08 CST 2016


As a budding iOS developer, I thought it might be nice if Swift were to
further improve on C's *switch* statement by using curly brackets to denote
a block instead of a colon. It seems like this would be more consistent
with the language at large and make indention more intuitive.

Here's a quick example of what it might be.

switch *value* {
  case *expression* {
  }
}

I apologize if this message isn't in the right format--I've not used a
mailing list before.

Joseph Essin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160127/3a46307c/attachment.html>


More information about the swift-evolution mailing list