Re: Immutable Ruby





On Aug 28, 10:07 pm, John Carter <john.car...@xxxxxxxxxx> wrote:

To find out what it would be like replace every
   Blah.new(arg1,arg2...)
    with
   Blah.new(arg1,arg2...).freeze

Almost. From my understanding Immutable objects can have internal
changing state as long as it is never exposed to the outside world.
For instance, memoize is a good example.

Am I right about that?

T.

.