From: Brian Adkins Date: 2007-10-12T05:40:07+09:00 Subject: Re: Why does this use a block On Oct 11, 3:33 pm, Erik Veenstra wrote: > > So, most of your objects are immutable? > > Yes. (If possible...) > > Q: Why? > A:http://lambda-the-ultimate.org/node/1446 Have you thought of programming in Haskell? ;) I'm familiar with some of the benefits of avoiding state with respect to functional programming languages, but to impose that strictly on Ruby seems to be working against the grain. I do code many functions (i.e. not associated with a meaningful instance) in a functional style w/o side effects, but when working with objects, having methods modify the state of objects seems to be very natural and productive in Ruby. I'm curious though because of my recent research into Haskell, SML, etc.. Do you have an example of this style of programming (frozen objects) in Ruby that you feel is compelling? Brian Adkins -- http://www.lojic.com http://lojic.com/blog/