[ruby-talk:02560] Re: frozen behavior

From: mengx@...
Date: 2000-04-21 15:51:40 UTC
List: ruby-talk #2560
> I don't necessarily see the argument for safety.  Java Strings
> You still have to remember to freeze the strings you want frozen,
> but I don't think that's fatal.
> 
> /\ndy
> 

On the opposite, I do not want to remember it so as to have peace of mind.
(Once a string is passed around many methods, data corruption sometimes
happens simply due to programmers not remembering to 'dup' the string)
and to thaw it only if I have to(mostly for performance reason.

Looks like it is difficult to implement in the current Ruby from Matz's
reply, I will just rest on this issue.

Thanks for all the reply

-Ted

In This Thread

Prev Next