News for hackers. Stuff that matters.
Re:Currying in JavaScript by neurotrace on Sunday September 19, 2021 @02:06PM (#28586485)
I 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

There are no comments on this comment yet.