News for hackers. Stuff that matters.
Re:Update on await syntax in Rust by numakerg on Tuesday May 28, 2019 @02:29PM (#20032928)
It seems there's a conflict between the logical flow of prefixes going right to left and postfixes going left to right. I wonder if there's any value (for other future languages) in having syntax to swap post and prefix for convenience

instead of (await doSomething()).somethingElse()

doSomething()@await.somethingElse()

Re:Update on await syntax in Rust by a1369209993 on Tuesday May 28, 2019 @05:59PM (#20034834)
That seems to be what this proposal is already working toward, eg with the discussion of also supporting .match.

keyword EXPR MAYBEBODY <=> EXPR.keyword MAYBEBODY

Re:Update on await syntax in Rust by steveklabnik on Tuesday May 28, 2019 @06:04PM (#20034870)
From the post:

> “Dot keyword:” In the previous post, a sketch was made of an idea in which certain keywords could be postfixed or infixed using the dot operator. This idea is only a sketch, and is not implied or guaranteed by the decision we’ve made here.

Re:Update on await syntax in Rust by a1369209993 on Thursday May 30, 2019 @06:12AM (#20049764)
Ah, pity; I originally read it as "We aren't sure which - if any - keywords we want to do this to.".