From: J-H Johansen Date: 2011-10-11T18:18:46+09:00 Subject: Re: why does `a + f b` not parse? --0016e6de003ae7aca104af0264a3 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Oct 11, 2011 at 9:54 AM, Martin DeMello wrote: > ruby-1.9.2-p0 > 2 + sqrt 5 > SyntaxError: (irb):25: syntax error, unexpected tINTEGER, expecting > keyword_do or '{' or '(' > from /home/martin/.rvm/rubies/ruby-1.9.2-p0/bin/irb:17:in `
' > > I can't see why that doesn't parse properly. > > In 1.8.7 I get the following: irb(main):011:0> 2 + sqrt 5 SyntaxError: compile error (irb):11: syntax error, unexpected tINTEGER, expecting kDO or '{' or '(' from (irb):11 from :0 but this one works irb(main):014:0> 2 + Math.sqrt(5) => 4.23606797749979 > martin > > -- Jens-Harald Johansen -- There are 10 kinds of people in the world: Those who understand binary and those who don't... --0016e6de003ae7aca104af0264a3--