Vitalii Kryvenko

Results 283 comments of Vitalii Kryvenko

Another possibility. `bon` may expose a separate version of the `builder` macro under a different module name. For example ```rust use bon::explicit::builder; ``` It would expose an "explicit" version of...

I'm revisiting this issue again. The problem with `impl Into` that's been biting me lately is the weakened type inference. For example, if there is a member of type `Config`...

Here are more thoughts on the design for this. The default `#[builder]` macro should generate no automatic `impl Into` on setters. The [automatic into conversion](https://elastio.github.io/bon/docs/guide/into-conversions#types-that-qualify-for-an-automatic-into-conversion) rules will be removed. So...

The PR https://github.com/elastio/bon/pull/54 that implements the behavior described in https://github.com/elastio/bon/issues/15#issuecomment-2297202745 was merged into master. I'll get it released with #56 implemented as well ASAP

Hi! Thank you for creating the issue. It's definitely possible to update `bon`'s logic to expose the values of other members to the expression used in `skip`, and I'd be...

> But if we constrain (compile time) that y must be set by the user, then it should be fine. Yeah, makes sense. I was just thinking to keep things...

I implemented (https://github.com/elastio/bon/pull/58) a simpler version of this feature where every member is initialized in the order of declaration, and `skip` is now unsupported in function/method syntax. This makes the...

**UPD:** If you are here to learn about fallible builders, then visit [this page in docs](https://bon-rs.com/guide/patterns/fallible-builders) which goes over the fallible builders in detail. It was created after this issue...

Makes sense, I'll add it to the docs together with some other common patterns with the coming release.

I added an example to the docs at the ["Fallible builders"](https://elastio.github.io/bon/guide/patterns/fallible-builders) page. There are some other patterns described in the "Patterns" section. I recommend you to check them out. See...