Hacker News new | past | comments | ask | show | jobs | submit login

Yeah, full agreement here. I almost said something along the lines of "it's almost like extending #[derive(Default)] with serde-like attributes to control which fields get what defaults, but with nicer syntax," but got a little lazy with it since we're in agreement anyway. It is annoying that deriving Default is all or nothing.

I didn't even think about the builder thing, but you're right there too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: