Native Function Composition

kai zhu kaizhu256 at gmail.com
Sat Aug 26 01:43:49 UTC 2017


-1

composition and pipeline-operators are both INCOMPATIBLE with
javascript's async-programming style, and will likely result in
tech-debt when used.  its fairly common for blocking-code to evolve
into async-code as features are added, e.g.

```js
result = arg |> operator1 |> operator2 |> operator3;

// becomes spaghetti-code when operator2 evolves
// to require async-merging with database-queries, file-reads, etc.

...
operatorAsync2(arg |> operator1, function (error, data) {
    if (error) {
        ...
        return
    }
    result = data |> operator3;
    ...
});

```


On 8/25/17, Simon Staton <simon.staton at bynd.com> wrote:
> That link appears to be broken Naveen, If you are considering a similar
> approach let’s collaborate would be interested to get your outlook on this
> and we could probably expand on either of these
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the es-discuss mailing list