moro icon indicating copy to clipboard operation
moro copied to clipboard

Absolutely unmotivating README

Open safinaskar opened this issue 3 years ago • 1 comments

I completely don't understand why I should use moro as opposed to plain futures (not to be confused to tasks). README shows code example, but I can write similar example without moro using plain futures:

let value = 22;
let result = (async {
    let future1 = (async {
        let future2 = (async {
            value // access stack values that outlive scope
        });

        let v = future2.await * 2;
        v
    });

    let v = future1.await * 2;
    v
}).await;
eprintln!("{result}"); // prints 88

I tested this code and it prints 88. So please update README and write actually motivating example

safinaskar avatar Jun 17 '22 16:06 safinaskar

I found out about moro through this blog post, following a link from this one, which together do a good job of laying out the problem space and where moro fits into it. Maybe linking them would be helpful?

avtrujillo avatar Apr 18 '24 17:04 avtrujillo