Await Syntax Discussion Summary

In the feedback on the Straw poll it was quite clear that most people don’t care about “it’s not a ‘real’ macro”. Many people wrote in concerns about the “field access style syntax” not being a field, and the “method style syntax” not being a real method. But similar comments about the macro style or the postfix macro style syntax weren’t common.

I think this is because a macro is a call to manipulate code at a given location at compile time. Macros are capable of doing a lot, including manipulating flow control and adding early returns. To think of await as a macro is not much of a stretch. (In fact it was prototyped as one) Ultimately an end user does not care if the manipulation of their code is being done by code in the standard library or code in the compiler.

17 Likes