Skip to content

[api evolution] Make all public enums into structs with static properties #999

@ktoso

Description

@ktoso

We need to do the usual trick of

public struct Thing { 
  let underlying: _Thing

  internal enum _Thing { 
  case example
  }

  public static example = .init(.example)
 
  internal init(_ underlying: _Thing) { 
    self.underlying = underlying
  }
}

to ensure future API compatibility -- for example for all settings, like singleton allocation strategy etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions