Remix.run Logo
xigoi 2 hours ago

> i could definitely see this leading to some very funky looking chaining.

At least for me,

  thing
    .doThis()
    .thenDoThat()
    .andFinallyThis()
is much more readable than

  andFinallyThis(
    thenDoThat(
      doThis(thing)
    )
  )
cupofjoakim 2 hours ago | parent [-]

Well, nesting is not the only option.

``` thing.doThis() thing.thenDoThat() thing.andFinallyThis()

// or

doThis(thing) thenDoThat(thing) andFinallyThis(thing) ```

xigoi an hour ago | parent [-]

That’s not equivalent.