-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Deprecate try! macro in favor of ? #61000
Copy link
Copy link
Closed
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I propose to mark the
try!macro as deprecated.Reasons for it:
?was stabilized in 1.13, November 2016. 2+years agotry!with?for 2+yearstryis a keyword in rust 2018 and needs to be written asr#try!try!."try!literally names the definition of deprecationThere are no real downsides 😃
(I am happy to wait for #37939 ;)