-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Make ^ the unsafe-pointer sigil, * the region-pointer sigil. #2826
Copy link
Copy link
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone
Metadata
Metadata
Assignees
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Since most of our signatures will carry region-pointers we might as well make them look as much like "pointer" as any programmer's visual reflex will give. We also have to do something about the ambiguity between
&as a sigil and&as an operator (explained by niko's post about patterns that capture values by reference).It requires freeing up
*from unsafe-pointer duty, so we're going to use^there, in a nod to pascal I guess, or maybe just due to it being "pointy looking" and thus hazardous-seeming.Anyway, onwards through the syntax bikeshed jungle!