From: Raul Jara Date: 2010-02-20T07:02:08+09:00 Subject: Re: strings combine Justin Collins wrote: > Raul Jara wrote: >>>> be concatenated, why program that behavior into the parser? >> into >> x.+(y) >> >> ? >> >> Or if you only think strings should work that way, and not numbers: >> >> x.concat(y) >> > > Because > > x y > > already means > > x(y) > > > -Justin But the parser knows what's a method and what's a variable, right? (I'm asking. I assume so but I really don't know.) If it knows what is a variable and what is a method, it can define x y as x(y) when x is a method, and x y as x.+(y) when x is a variable. Right? I'm not trying to prove a point, or anything. I'm just trying to understand if there is a rationale behind this decision that I'm not seeing. -- Posted via http://www.ruby-forum.com/.