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
Hi Brent,Thank you for your helpful advice. In fact, I was wondering
(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.
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/
_______________________________________________