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

Add fluent setters, that can be used for chaining setters, like in modern Rust #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

GamePad64
Copy link

@GamePad64 GamePad64 commented Mar 30, 2022

Useful for configuration structs.

Closes #77

@Hoverbear
Copy link
Collaborator

Appreciate your work, but please understand I don't think this will merge any time soon, if ever. I already think the crate does too much, in the wrong way.

Perhaps you'd be better off making this a separate crate. :)

@Silberling Silberling mentioned this pull request Jun 24, 2022
@kkolyan kkolyan mentioned this pull request Jun 26, 2022
@kkolyan
Copy link

kkolyan commented Jun 26, 2022

@GamePad64
could you please clarify what do you mean "like in modern Rust"? are there some relevant out-of-the box features?

@GamePad64
Copy link
Author

@GamePad64 could you please clarify what do you mean "like in modern Rust"? are there some relevant out-of-the box features?

I don't know about these features in Rust itself, but builder pattern is quite popular in Rust. OpenOptions is a good example for this.

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.

Fluent Setters
3 participants