Skip to content

[SR-12666] Remove the open/frozen enum language dialect #55110

@weissi

Description

@weissi
Previous ID SR-12666
Radar rdar://problem/62318713
Original Reporter @weissi
Type Bug
Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 13f02b076545191585eaef8de5234844

Issue Description:

Currently, Swift has at least two language dialects:

  • Swift with library evolution on (Swift+LE )

  • Swift with library evolution off (Swift-LE )

To my knowledge, there's only one semantic difference:

  • Swift+LE 's enum s are open by default and can be closed by using @frozen

  • Swift-LE 's enum s are closed by default and CANNOT be open

That leaves us in Swift-LE land in a terrible position (eg. apple/swift-nio#1428 , apple/swift-nio#969 ): Not only do we have a different default, Swift-LE actually literally cannot express the default behaviour of Swift+LE...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions