Jeff Schwab
2/7/2006 1:39:00 AM
Matthew Smillie wrote:
> On Feb 6, 2006, at 13:58, Jeffrey Schwab wrote:
>
>> Hal Fulton wrote:
>>
>>> zdennis wrote:
>>>
>>>> um... the push operator <<
>>>>
>>>> some folks call it the less-than-less-than thing, but that seems
>>>> soo long.
>>>
>>> Noted. I usually call it the append operator.
>>
>>
>> In C++, it's often called the insertion operator. I have been
>> thinking of it as such in Ruby.
>
>
> So, if it operates like a duck...
Exactly.
I never understand why people think of duck typing as being unique to
dynamic languages. C++ has great support for static, generic
programming, and a lot of what Ruby does at run-time, C++ can do at
compile-time.
Of course, Ruby has plenty of advantages of its own. :)