From: "Eregon (Benoit Daloze)" Date: 2021-10-26T19:03:42+00:00 Subject: [ruby-core:105814] [Ruby master Bug#18267] Argument forwarding requires parenthesis on method definitions Issue #18267 has been updated by Eregon (Benoit Daloze). [joke] Maybe a reason to be a little bit more consistent about Ruby syntax and always use parens for method definitions? :D [/joke] ---------------------------------------- Bug #18267: Argument forwarding requires parenthesis on method definitions https://bugs.ruby-lang.org/issues/18267#change-94333 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0dev (2021-10-21T22:47:38Z master 844588f915) [x86_64-darwin20] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- I like to write my method definitions without parenthesis. For example: ```ruby def foo bar # ... end ``` I tried to use `...`, but it doesn't work. For example if I do: ```ruby def call a, ... a.nil?(...) end ``` It will be a syntax error, and the program exits. Can we make this syntax work so that I can always omit parenthesis? Thank you! -- https://bugs.ruby-lang.org/ Unsubscribe: