News for hackers. Stuff that matters.
Re:Update on await syntax in Rust by kibwen on Tuesday May 28, 2019 @01:32PM (#20032355)
For ease of comparison, here's how that would look with syntax akin to Rust's choice:

    var value = startRequest().await.getBody().await.Root;
Re:Update on await syntax in Rust by eridius on Tuesday May 28, 2019 @02:29PM (#20032916)
Assuming these are failable actions then this would probably end up looking like

  var value = startRequest.await?.getBody().await?.Root;
Re:Update on await syntax in Rust by Too on Thursday May 30, 2019 @03:16AM (#20049056)
While we are doing comparisons, here is the Promise version:

    startRequest()
        .then(req => req.getBody())
        .then(body => { value = body.Root })