-
Notifications
You must be signed in to change notification settings - Fork 218
Closed
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problemsstate-duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Some asynchronous code looks bad when you use a lot of objects and properties.
var v = (await future1((await future2).property2)).property1;
I would like to see (await someFuture()).property
as someFuture().awaited.property
then code above could be rewritten as
var v = future1(future2.awaited.property2).awaited.property1;
We could use await
Instead of awaited
to highlight it more for readability.
What do you think?
Metadata
Metadata
Assignees
Labels
featureProposed language feature that solves one or more problemsProposed language feature that solves one or more problemsstate-duplicateThis issue or pull request already existsThis issue or pull request already exists