Actions
Bug #20094
closedInline while loop behavior changed unexpectedly in 3.3.0
Bug #20094:
Inline while loop behavior changed unexpectedly in 3.3.0
Description
The behavior of the inline while loop has changed in 3.3.0. This unexpectedly broke my code and I couldn't find anything in the changelog about it so reporting it as a bug.
In ruby <= 3.2:
In ruby 3.3:
Essentially, if the left hand side looks like a statement, now it is treated as a do-while loop. In ruby 3.2 and less this only happened with explicit use of begin and end.
Actions