Actions
Bug #11470
closedextra parens required for if/unless/rescue modifier expressions in single arg method invocations
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
Description
foo(1 if true) is not allowed requiring foo((1 if true))
also foo(1 unless true) foo(bar rescue 1)
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Status changed from Open to Rejected
It's a spec.
Updated by bughit (bug hit) almost 9 years ago
Nobuyoshi Nakada wrote:
It's a spec.
What code would break if foo(1 if true)
were valid?
None I would think so why not have it work, there is no ambiguity?
Actions
Like0
Like0Like0