[ruby-talk:02555] Re: frozen behavior

From: mengx@...
Date: 2000-04-21 15:11:52 UTC
List: ruby-talk #2555
> That's sounds pretty painful as the default, I think, and would
> likely break every program in existance!
> 
> Perhaps a command line flag could freeze strings by default, or
> --even better-- if we had access to the String constructor,
> you could simply override it in your Ruby program and freeze
> all strings by default without breaking any other program.
> 
> /\ndy
> 

This may not work since once you override it, all subsequent imports
(requires) module will break unless resetting it.
 I feel making string frozen by default
not only saves a lot of typing, but also make programs a lot safer.
Perhaps it is time to write Ruby4000 to make a perfect language:-)

In This Thread

Prev Next