Closed traviscross closed 9 months ago
Capturing the summary here:
$self = $x
). We need to either define a mechanism/desugaring that works for that, or decide we don't need to support that. Places work with closures today (e.g. |y| { x = y }
), but we need to decide if we want it to work with postfix macros. We also need to figure out if it's simpler to support this or to not support this.$foo:expr_eval
. (We would still have the option of mandating the use of that with $self
.)@Nadrieril suggested place
for the desugaring, instead of autoref
.
Summary
We plan to discuss RFC 2442, "Simple postfix macros".
If we have time, we'll also discuss RFC 3295, "Postfix match".
@joshtriplett is preparing a document for us.
Background reading
About this issue
This issue corresponds to a lang-team design meeting proposal. It corresponds to a possible topic of discussion that may be scheduled for deeper discussion during one of our design meetings.