Hi Yasuyuki,

Here is some resource Brent produced, why tail-recursion isn't that important in haskell:

http://www.haskell.org/pipermail/haskell-cafe/2009-March/058607.html
(http://www.haskell.org/haskellwiki/Tail_recursion)

I think it is nice to have some background (and it is pretty interesting).

Greets,

Edgar

On Sun, Nov 7, 2010 at 4:16 AM, Yasuyuki Ogawa <yuka_pon20@yahoo.co.jp> wrote:
Hi Brent,


(2010/11/07 4:26), Brent Yorgey wrote:
However, the real answer is: don't worry about it!  Because of
Haskell's lazy evaluation, the notion of "tail call" is not very
important. And even if it were, you still shouldn't worry about it:
just write your Haskell programs in the most natural, beautiful style
you can think of.  Maybe at some point down the road you will have
to start worrying about optimization.  But you should put it off as
long as possible.

Thank you for your helpful advice. In fact, I was wondering
how coding styles affect optimization! I'll forget it a while.

--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
_______________________________________________