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

Yeah, I’ve wrestled with this, too. Usually I’ve compromised on having sub-states (Swift enums with associated types alleviate some of the pain), but still doesn’t feel quite right.


You should try Swift's Combine library. It works pretty nicely for modeling / cleaning up complex async flows.




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

Search: