Skip to content

[SR-3542] Enum cases should have compound names, like functions #46130

@jckarter

Description

@jckarter
Previous ID SR-3542
Radar None
Original Reporter @jckarter
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, StarterProposal
Assignee @dduan
Priority Medium

md5: 81cdae497bc08ef2e10d81c0715ec5fc

Issue Description:

In Swift 3, we cleaned up the argument label model for most declarations, but enum cases got left behind. If you have cases with labeled payloads:

enum Foo {
  case bar(bas: Int)
  case zim(zang: Int, zung: String)
}

then the cases are still formally declarations named bar and zim, with labeled tuples as payload types. They should behave more consistently with other declarations and have the labels become part of the declaration name.

Metadata

Metadata

Assignees

Labels

compilerThe Swift compiler itselfgood first issueGood for newcomersimprovementswift evolution implementedFlag → feature: A feature that was approved through the Swift evolution process and implemented

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions