Comment by 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)
)
)
Well, nesting is not the only option.
``` thing.doThis() thing.thenDoThat() thing.andFinallyThis()
// or
doThis(thing) thenDoThat(thing) andFinallyThis(thing) ```
That’s not equivalent.