On Nov 3, 12:59 pm, tim.pe... / gmail.com wrote:
[...]
> WIth a coerce method defined for String, you can now write the
> following in Ruby ...
>
> 1 + "2"    #=> 3
[...]

In Java String is immutable partly for security reasons.  I don't see
that security is a concern with Ruby, however.  No?



thanks,

Thufir