From: Brian Candler Date: 2010-04-15T05:38:49+09:00 Subject: Re: I thought spaces didn't matter around operators Sarah Allen wrote: >>> "foo" +"bar" > => "foobar" >>> 1 +1 > => 2 >>> 1 -1 > => 0 >>> Time.now - Time.now > => 0.0 >>> Time.now -Time.now > NoMethodError: undefined method `-@' for Wed Apr 14 13:28:15 -0700 > 2010:Time > from (irb):40 Ah I see now, this is just what's called "poetry mode" - method calls without parentheses around the argument list Time.now - Time.now => Time.now() - Time.now() Time.now -Time.now => Time.now(-Time.now()) Similarly, Time.now - 1 => Time.now() - 1 Time.now -1 => Time.now(-1) -- Posted via http://www.ruby-forum.com/.