Actions
Feature #14606
closedChange begin-else-end without rescue from warning to syntax error
Feature #14606:
Change begin-else-end without rescue from warning to syntax error
Status:
Closed
Assignee:
-
Target version:
-
Description
begin-else-end without rescue is useless and dangerous. (especially, do-else-end is easy to mistake)
In actually, programmer never intend to write like these.
Ruby interpreter can guard this case by syntax error.
Updated by matz (Yukihiro Matsumoto) over 8 years ago
Accepted.
Matz.
Updated by mame (Yusuke Endoh) over 8 years ago
Updated by Earlopain (Earlopain _) 15 days ago
- Status changed from Open to Closed
Both are syntax errors now, the first example since https://github.com/ruby/ruby/commit/140512d2225e6fd046ba1bdbcd1a27450f55c233
Actions