News for hackers. Stuff that matters.
Re:Update on await syntax in Rust by steveklabnik on Tuesday May 28, 2019 @02:31PM (#20032940)
That needs a postfix macro, which is a completely different feature that does not exist and may not ever exist.
Re:Update on await syntax in Rust by staticassertion on Tuesday May 28, 2019 @02:33PM (#20032959)
Yeah, I was assuming postfix macro + prefix await was accepted, specifically to address the "it can't be a macro" argument in the initial post from boats.

Similarly, postfix keywords are not a thing that exist in rust, and await is the only accepted one.

Re:Update on await syntax in Rust by numakerg on Tuesday May 28, 2019 @02:37PM (#20032992)
The writeup mentioned that (await future)?; is undesirable because it disrupts the logical flow.

Could await be implemented as a prefix, with an additional macro?

awaits!(foo()) that expands to (await foo())

Re:Update on await syntax in Rust by steveklabnik on Tuesday May 28, 2019 @02:39PM (#20033010)
That ruins the chaining aspect.