getset icon indicating copy to clipboard operation
getset copied to clipboard

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

Open GamePad64 opened this issue 3 years ago • 3 comments

Useful for configuration structs.

Closes #77

GamePad64 avatar Mar 30 '22 21:03 GamePad64

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. :)

Hoverbear avatar Apr 04 '22 16:04 Hoverbear

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

kkolyan avatar Jun 26 '22 13:06 kkolyan

@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.

GamePad64 avatar Jun 26 '22 18:06 GamePad64