Closed
Description
While it is helpful to unravel futures using async/await, when the non-future item you need is several futures deep, the awaits quickly become hard to read. This comes up a lot in testing/pageloader objects
Example:
expect( await( await (await childElement).description1)).innerText. "blah");
How about introducing an async operator to make this a little cleaner? Something like this:
expect( await childElement->description1->innerText, "blah");
The first await is for the Future returned by inner text. the "->" operator sees that the left side is a future, awaits it, then acts as the access operator. Doesn't have to be "->", but I like the parallel of de-futurizing to pointer dereferencing in c++.