-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Closure reform #2202
Copy link
Copy link
Closed
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsmetabugIssues about issues themselves ("bugs about bugs")Issues about issues themselves ("bugs about bugs")
Milestone
Metadata
Metadata
Assignees
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsmetabugIssues about issues themselves ("bugs about bugs")Issues about issues themselves ("bugs about bugs")
Type
Fields
Give feedbackNo fields configured for issues without a type.
UPDATE:
This is a meta-bug now for tracking the work on completing closures. Now that #6801 has landed, the remaining pieces of work are:
'a ||as syntaxORIGINAL FOLLOWS:
We need to revamp function types in light of regions. I think
fn()(the "any" function) will go away, andfn@()andfn~()will be coercable tofn&(), just as with poiners/vectors/slices/etc. Also,fn&()becomesfn&r()(that is, r is a region), though the user won't typically need to write it. We can probably leave the representation as is, though we could also tweakfn&()to not have a ref count since there will be an explicit borrowing that occurs.