RoslynDOM icon indicating copy to clipboard operation
RoslynDOM copied to clipboard

Support for await

Open KathleenDollard opened this issue 10 years ago • 0 comments

I don't support await yet because I can't figure out the semantics, and you actually have two visions in your head depending.

What's really happening is more or less this

// code await stuff { // more code }

but what it looks like is

// code await stuff // more code

The simplicity of the second version was core to the design of async. However, I also think it trips people up and that the first approach will make it much easier to do certain types of analysis.

I have three design ideas

  • nest statements following await, per first code above
  • have await be a random keyword like continue
  • provide two "modes", async simple, async expanded

I really, really hate the idea of modes. But I see such serious problems with both of the other options I'm leaning to it.

KathleenDollard avatar Jul 25 '14 14:07 KathleenDollard