Actions
Feature #14785
openParse guard statements like regular conditionals
Feature #14785:
Parse guard statements like regular conditionals
Status:
Open
Assignee:
-
Target version:
-
Description
I just learned that these two pieces of code are not the same:
The second one will give this unhelpful error message:
I think this is confusing, especially since tools like RuboCop sometimes encourage users to change conditionals to inline ones ("guard statements"). I'd like to propose that Ruby be changed to treat these as the same.
Actions