Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sure, but the point is that providing factories requires extra work and consideration, so a lot of C++ classes instead lean on the default option of a constructor. Rust's removal of that forces the class designer to choose.


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

Search: