On Wed, Oct 1, 2008 at 1:08 PM, Gregory Brown <gregory.t.brown / gmail.com> wrote:
> On Wed, Oct 1, 2008 at 1:58 PM, James Gray <james / grayproductions.net> wrote:
>> I'm disappointed that Ruby still supports this goofy syntax:
>>
>>  $ ruby_dev -ve 'p "a" "bc"'
>>  ruby 1.9.0 (2008-09-27 revision 0) [i386-darwin9.5.0]
>>  "abc"

I think one reason it was originally implemented is because the '+'
operator could potentially be overridden and there needed to be a way
to concat strings.

So, when you see

 x = "foo" + "bar"

do you think of the '+' as a given for a string concatenation operator or as:

x = "foo".+("bar")

where, someone could have changed String#+.




-- 
Jim Freeze