You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open question: The syntax for this is just placeholder, using a placeholder keyword. It isn't final at all and likely will need to change to read well.
Can const Self be replaced with const copy? Can const Self* be replaced with const ref?
It seems like it would be confusing if in this context const copy and const ref are self-contained expressions that refer to types, while in an implicit parameter list they are introducers or modifiers for a larger syntactic construct that refers to a variable (or a whole set of variables, in the case of the default capture mode).
It does seem like there's some commonality in the underlying semantics, but I'm not sure how to surface that in the syntax. When/if the design for function calls, extend adapt, etc. gets to a point where we can define reference types in terms of those concepts, I think we'll be in a much better position to sort this out.
Summary of issue:
/docs/design/values.md#value-representation-and-customization
Can
const Self
be replaced withconst copy
? Canconst Self*
be replaced withconst ref
?See Lambdas proposal at #3848
Details:
No response
Any other information that you want to share?
No response
The text was updated successfully, but these errors were encountered: