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

The best option here is a private constructor with public static "constructor functions" which can return something like Result<T>.


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

Search: