News for hackers. Stuff that matters.
Re:Scala 2.12.0 is now available by runT1ME on Thursday November 03, 2016 @02:25PM (#12866551)
This is what monadic syntax is for. You can do the following for any Future in scala:

    for {
       resa <- asyncCall(1)
       resb <- asyncCall(2)
       resc <- asyncCall(3)
    } yield new Obj(resa, resb, resc)
which just gets rewritten to

    asyncCall(1).flatMap(resa => asyncCall(2).flaMap(resb =>
           asyncCall(3).map(resc => new Obj(resa, resb, resc))))
This doesn't just work for futures, it works for any monad. This is super amazingly useful. Also, query syntax for LINQ in C#/F# can support this too.
Re:Scala 2.12.0 is now available by adriaanm on Thursday November 03, 2016 @02:58PM (#12866894)
With scala async, you can also express this in direct style: https://github.com/scala/async.