From: bughit.github@... Date: 2021-07-19T19:22:22+00:00 Subject: [ruby-core:104646] [Ruby master Feature#18040] Why should `foo(1 if true)` be an error? Issue #18040 has been updated by bughit (bug hit). ```rb def foo 2 1 if false end p foo ``` foo returns nil, the value of the last expression `1 if false`, no parens required since there's no ambiguity, as there isn't any in `foo(1 if true)` ---------------------------------------- Feature #18040: Why should `foo(1 if true)` be an error? https://bugs.ruby-lang.org/issues/18040#change-92955 * Author: bughit (bug hit) * Status: Open * Priority: Normal ---------------------------------------- There's no ambiguity here that should require another set of parens `foo((1 if true))` -- https://bugs.ruby-lang.org/ Unsubscribe: