4 ms·
Yeah, agreed. It's functional, but technically weak. This might be a place to introduce functional pipelines like Haskell's Pipes, Machines, Conduits. They sol
by tel 12y ago
Yeah, agreed. It's functional, but technically weak.
This might be a place to introduce functional pipelines like Haskell's Pipes, Machines, Conduits. They solve the effectfull iteration and streaming problem, but the mechanism is heavily transformer based.
- ufo 12y agoThe problem is that while you can introduce FP abstractions to structure your programs, they are not the same abstractions that you use in the synchronous (imperative) code. You still end up in a situation where your programs is written in two colors that don't play nice with one another (for example, a "foreach" combinator doesn't work on both sync callbacks and async callbacks)