News for hackers. Stuff that matters.
Re:Coroutines are now in Clang trunk, libc++ by Veedrac on Friday May 26, 2017 @01:29PM (#14425761)
C++ actually has the same problem; you can't specify the return value of an unboxed lambda. The differences there are that C++ lets you deduce function return types since C++14, something Rust doesn't want to support, and that boxing is done through a special std::function type, rather than a normal heap pointer.
Re:Coroutines are now in Clang trunk, libc++ by steveklabnik on Friday May 26, 2017 @02:49PM (#14426279)
> something Rust doesn't want to support

Well, in this way. "impl Trait", which was just accepted for stabilization, will let you return unboxed closures.