From mental at rydia.net Tue May 9 14:28:19 2006 From: mental at rydia.net (MenTaLguY) Date: Tue, 9 May 2006 11:28:19 -0700 Subject: [grammarians] Fwd: Re: Method call syntax Message-ID: I think I mentioned this change in future Ruby versions during our earlier method call discussions, but if not: -------- Original Message -------- Subject: Re: Method call syntax Date: Tue, 9 May 2006 14:10:28 +0900 From: Yukihiro Matsumoto To: ruby-core at ruby-lang.org Hi, In message "Re: Method call syntax" on Tue, 9 May 2006 05:48:13 +0900, mathew writes: |"Omission of parentheses around method arguments may lead to unexpected |results. Note that the Ruby developers have stated that omission of |parentheses may be disallowed in future Ruby versions..." | |Is this true? I've been unable to find any reference to the alleged |unexpected results. It's in fact: Omission of parentheses around method arguments for method calls in the argument list may make programs hard to read / parse. for example, p sprintf "the answer=%d\n",42 warns like "warning: parenthesize argument(s) for future version", and recommended code should be p sprintf("the answer=%d\n",42) matz.