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

Yup, and IO being async usually creates impedance mismatch in constructors.

Had to refactor quite a few anti-pattern constructors like this into `async Task<Thing> Create(...)` back in the day. No idea what was the thought process of the original authors, if there was any...



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

Search: