We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69175db commit 43ad167Copy full SHA for 43ad167
text/0000-unless-until.md
@@ -410,7 +410,13 @@ scope of this RFC.
410
`until`.
411
412
The negative words may lead casual readers to form improper assumptions
413
- about control flow, inducing confusion or stutter when reading in more depth
+ about control flow, inducing confusion or stutter when reading in more
414
+ depth.
415
+
416
+ If this RFC is accepted, the compiler MAY choose to add a lint warning that
417
+ is raised whenever an `unless !` or `unless { a } else { b }` construct is
418
+ encountered, and suggest changing them to an `if` or `if { b } else { a }`,
419
+ respectively.
420
421
- Patterns *cannot* have interior bindings.
422
0 commit comments