Vitalii Kryvenko

Results 283 comments of Vitalii Kryvenko

Note that this has the problem of allowing you to set the value for the same optional field more than once: ```rust Example::new([0, 1, 2]).optional(3).optional(4); ``` This can happen if...

I think it's reasonable. Eventually, we'll get there

Yes, according to the title, the issue was implemented in #125. While discussing it we determined that the author of the issue had a bit different requirements in mind. I...

Indeed suboptimal. Wasted some time because the errors didn't have enough context and I wasn't seeing the path to the file that `protox` was compilling, so I thought it was...

Hi! I'm glad you liked `bon` :cat:. I'm very happy that you'd like to consider donating :heart:. I've never received donations, so my experience with this is practically zero. I'd...

Found some time to create accounts on [patreon](https://patreon.com/Veetaha) and [ko-fi](https://ko-fi.com/Veetaha), now they are displayed on the repo main page: ![image](https://github.com/user-attachments/assets/68d46e57-0d74-49ed-b683-9db129747044) Unfortunately, Github Sponsors and buy-me-a-coffee don't support my country. If...

@dzmitry-lahoda I think I know what compile-time builder crate you are talking about which implements such a feature, and I was thinking about having it at some point in `bon`...

In the meantime I think the simplest way to achieve member groups is just by using enums. Like this: ```rust #[derive(bon::Builder)] struct Example { #[builder(into)] group: Group } #[derive(from_variants::FromVariants)] enum...

Yeah, I understand enums may be unreasonable when the combinations of states would contain a lot of duplicate fields and projections of each other, and the number of variants may...

From const-typed-builder docs: > this implementation currently has a complexity of $O(2^g)$ where $g$ is the amount of grouped variables That sounds horrible. I'm afraid of how easy it will...