3 ms·
Simplified examples always look neat. Any code/syntax will look simple if it doesn't have async, state and error handling.
by z3t4 5y ago
Simplified examples always look neat. Any code/syntax will look simple if it doesn't have async, state and error handling.
- neurotrace 5y agoI can't be bothered to type all of it out on my phone but even adding in those pieces, it doesn't change it much. This is F# so you can easily manage the async via an async computation expression, the retry logic can be encapsulated in the `sendEmails` function, and the error handling is reduced to a `Result` which is very easy to work with in a pipeline. Not everything should be done in a pipeline but pipelines make a lot of things a lot nicer