Gerald Vim wrote in post #1127156:
> On 13/11/2013 12:33, Matthew Kerwin wrote:
>> 4. update the variable named "x" to refer to the result of that method
>> variable.
>> our a String
>>
>>    y << "d"
>>
>> ... which would have saved us a variable assignment, but both snippets
>> result in an identical state.
>>
>
> I'm beginning to see Ruby's "everything is an object" as a serious
> barrier to comprehension, epsecially when this object-orientation is
> dressed up in procedural syntax. Perl seems a lot more natural by
> comparison.
>
> gvim

If you like, you can rewrite all of the above as:

  x = x.+(1);
  y = y.<<("d");

Everything else is syntactic sugar.

Also, for the record, there's this:  x += 1
Which expands out to:  x = x.+(1)

-- 
Posted via http://www.ruby-forum.com/.