Re: Coroutines - was Re: Daffodil SAX API Proposal

2020-04-23 Thread Beckerle, Mike
I am pretty worried about the @suspendable annotation. The way this shift/reset stuff works is it modifies the scala compiler to do something called continuation passing style. aka CPS. I'd be ok if that was isolated to just a segment of the code. Maybe there is some natural way to do that? Bu

Re: Coroutines - was Re: Daffodil SAX API Proposal

2020-04-23 Thread Steve Lawrence
Thanks Mike! Continuations seems like a better alternative, at least from a support point of view. Though, it's a little concerning that no one is really stepping up to port it to 2.13, but I don't think we're in any rush to get to 2.13. And I personally find the reset/shift concept a bit harder to