[PATCH] D41820: [coroutines] Pass coro func args to promise ctor

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 16:24:58 PST 2018


GorNishanov added a comment.

In https://reviews.llvm.org/D41820#974116, @EricWF wrote:

> Is this behavior specified somewhere? Or are we simply adding an extension to Clang? If so I would really prefer to add my `co_promise` solution (but I need to write a paper in favor of it first).


Before bringing the language change proposal, it makes sense to implement the feature and test it out on real examples.  MSVC compiler implemented a number of coroutine features to do sanity testing and put in the customers hands before a feature was proposed.

Since this is a non-breaking change, I think it makes sense to put it in and play with it. This particular approach was talked about since 2014, but, no formal proposal was made. I am bringing the paper to upcoming Jacksonville meeting and would like to make sure that we have both implementation and usage experience for the feature.


Repository:
  rC Clang

https://reviews.llvm.org/D41820





More information about the cfe-commits mailing list