Conversation

Yeah I'm actually more interested in the syntax than monads here. I think there's a bunch of value in being more flexible
1
2
To make this flat, among other things. one() |> promise.then(fn (x) { two() |> promise.then(fn (y) { three() |> promise.then(fn (z) { promise.resolve(x + y + z) }) }) })
1
Yeah, you could imagine elaborating let expressions to that, based on the types. Haven’t thought about all the details and issues surrounding that however.
1