Open asl opened 1 year ago
Tagging @rxwei @dan-zheng @BradLarson
Quick check: do we have non-toy motivating use cases for class differentiation? If yes, could we please share them here?
Features like class differentiation involve many design decisions, and it's nice to do use-case-driven development to ensure decisions are made in support of real use cases.
This is for @BradLarson :)
I second Dan's quick check. It seems that there are more important issues to tackle to bring us closer to Swift Evolution like ABI stability.
This is a meta-issue noting all kinds of issues related to differentiating of classes, class methods, etc. While the things are more or less working for ordinary functions and structs, there are lots of missed functionality related to classes.
read / modify
accessors.read / modify
accessors we need to implement missed pieces of functionality around differentiation of co-routines. While semantically it is unclear how one could derive a derivative of function that essentially might return different values in general, we can narrow down task to support only@yield_once
co-routines, where everything essentially returns only once, there is no way toresume / abort
co-routine, so they act as a normal functions and@yield_once
is just a way to transfer ownership.Related issues: