Skip to content

Conversation

@milenkovicm
Copy link
Contributor

... options

closes #9529

Which issue does this PR close?

Closes #9529.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

}

/// Insert new [ConfigExtension]
pub fn with_option_extension<T: ConfigExtension>(mut self, extension: T) -> Self {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we have discussed with_extension_options as the method name, but it make more sense to me to name it like this, not to be confused with with_extension

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I agree this is a reasonable name, even though it still a bit awkward

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm horrible with naming things 😀 open to suggestions

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, if I had a better alternative I would give it.

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @milenkovicm

}

/// Insert new [ConfigExtension]
pub fn with_option_extension<T: ConfigExtension>(mut self, extension: T) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I agree this is a reasonable name, even though it still a bit awkward

@alamb alamb merged commit 0b95577 into apache:main Mar 25, 2024
@alamb
Copy link
Contributor

alamb commented Mar 25, 2024

Thanks again @milenkovicm

@milenkovicm milenkovicm deleted the simplift_extension_options branch March 25, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it easier to register configuration extension options

2 participants