andrea <kerny404 / gmail.com> writes:

> Very interesting discussion, I love ruby and I love also haskell,
> which I think made me a better programmer.
>
> But does it really make sense to program in a functional way in ruby??
>
> "Functional" code can be much more clean and elegant (in my opinion)
> but what about performance issues???
>
> The interpreter is going to have many new objects created around, and
> so there will be more work for the garbage collector or more memory
> used, am I wrong?

Who cares about processing time?  The processors are faster and faster
by the minute.  Memory and memory is bigger by the hour.

But programmer's time is still incompressible.  I still have only 24
hours per day.  This is the time that should be optimized.  And if
writting functional code makes us programmers spare development and
debugging time, so be it. 

Of course, if ruby is not good at optimizing functional code, and this
posed any performance problem in the deployed applications, you would
better switch to Common Lisp or Haskell.


-- 
__Pascal Bourguignon__