Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jckarter opened this issue Jan 4, 2017 · 2 comments
Closed

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

jckarter opened this issue Jan 4, 2017 · 2 comments
Assignees
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented

Comments

@jckarter
Copy link
Member

jckarter commented Jan 4, 2017

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.

@dduan
Copy link
Collaborator

dduan commented Jan 23, 2017

Pull request: apple/swift-evolution#593

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented compiler The Swift compiler in itself improvement good first issue Good for newcomers and removed bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. StarterProposal labels Nov 11, 2022
@AnthonyLatsis
Copy link
Collaborator

Proposal: SE-0155

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement swift evolution implemented Flag → feature: A feature that was approved through the Swift evolution process and implemented
Projects
None yet
Development

No branches or pull requests

3 participants