From: alxtskrnk@... Date: 2015-09-14T00:39:13+00:00 Subject: [ruby-core:70798] [Ruby trunk - Bug #11470] extra parens required for if/unless/rescue modifier expressions in single arg method invocations Issue #11470 has been updated by bug hit. 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 abmiguity? ---------------------------------------- Bug #11470: extra parens required for if/unless/rescue modifier expressions in single arg method invocations https://bugs.ruby-lang.org/issues/11470#change-54183 * Author: bug hit * Status: Rejected * Priority: Normal * Assignee: * ruby -v: * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- foo(1 if true) is not allowed requiring foo((1 if true)) also foo(1 unless true) foo(bar rescue 1) -- https://bugs.ruby-lang.org/