Await Syntax Discussion Summary

I am a bit disappointed that postfix-sigil option got excluded so easily. Personally I strongly dislike .await and I was surprised to learn that it has the greatest level of support in the lang team. I think it is obviously not orthogonal and thus will noticeably drain strangeness budget. If you really want await to be present, then why not introduce an additional operator to be used instead of . for situations like this? For example:

// it was proposed several times in the previous discussion
foo()?
    @await
    .bar()
    @await?; 
// looks a bit weird, but will utilize "`!` is special" intuition
foo()?
    !await
    .bar()
    !await?; 

And later it will be possible to generalize this feature (maybe for postfix macros?).

@dlukes

The link has worked for me previously, but now it requires registration for some reason…

1 Like