Em 09-04-2012 12:53, Nobuyoshi Nakada escreveu:
> Hi,
>
> (12/04/09 22:46), rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
>> Also, while on the subject, don't you think that Ruby specs should
>> state that ("some " + "string") would concatenate the strings in
>> compiling time and that they shouldn't expect the :+ method to be
>> called? That way we wouldn't have any perfomance degradation using
>> this style...
> It can't, because String#+ might be overridden.

I know, that is why I proposed this to be changed in a specification level.

For instance, what would be the issue with an overridden String#+ not 
being called in such cases?