Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
programmarchy
on Jan 23, 2023
|
parent
|
context
|
favorite
| on:
Why developers never use state machines (2011)
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.
rcme
on Jan 23, 2023
[–]
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: