Settings

Theme

Synchronous Core, Asynchronous Shell

blog.sulami.xyz

18 points by sulami a year ago · 2 comments

Reader

zogrodea a year ago

I follow the same principle in my code, but doesn't the "functional core, imperative shell" pattern already push the async stuff out of the core?

What would be an example of an async operation that doesn't perform a side-effect (thereby needing a place in the imperative shell rather than the functional core)?

I think pushing async to the shell is really a subset of pushing imperative code to the shell.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection