Skip to content

Commit

Permalink
Add a lint suggestion to the drawbacks, per review.
Browse files Browse the repository at this point in the history
  • Loading branch information
myrrlyn committed Apr 2, 2018
1 parent 69175db commit 43ad167
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion text/0000-unless-until.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,13 @@ scope of this RFC.
`until`.

The negative words may lead casual readers to form improper assumptions
about control flow, inducing confusion or stutter when reading in more depth
about control flow, inducing confusion or stutter when reading in more
depth.

If this RFC is accepted, the compiler MAY choose to add a lint warning that
is raised whenever an `unless !` or `unless { a } else { b }` construct is
encountered, and suggest changing them to an `if` or `if { b } else { a }`,
respectively.

- Patterns *cannot* have interior bindings.

Expand Down

0 comments on commit 43ad167

Please sign in to comment.