Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jun 30, 2020

Motivation:

Public enums are bad for API evolution.

Modifications:

  • Replace the 'Compression' enum with a struct backed by an enum.
  • Rename a related internal function label

Result:

More evolvable API.

Motivation:

Public `enum`s are bad for API evolution.

Modifications:

- Replace the 'Compression' `enum` with a `struct` backed by an `enum`.
- Rename a related internal function label

Result:

More evolvable API.
@glbrntt glbrntt requested a review from Lukasa June 30, 2020 16:09
@glbrntt glbrntt added nio ⚠️ semver/major Breaks existing public API. labels Jun 30, 2020
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, :shipit:

@glbrntt glbrntt merged commit 8ae8ee4 into grpc:master Jul 1, 2020
@glbrntt glbrntt deleted the gb-public-enum-compression branch July 1, 2020 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ semver/major Breaks existing public API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants