Re: Immutable Ruby
- From: Trans <transfire@xxxxxxxxx>
- Date: Thu, 28 Aug 2008 23:58:58 -0500
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.
.
- Prev by Date: [ANN] mechanize 0.7.8 Released
- Next by Date: Re: Writing a method to handle a code block?
- Previous by thread: Re: Immutable Ruby
- Next by thread: NoMethodError ?
- Index(es):