Newsgroups: fa.caml
From: Jacques Garrigue <garri...@math.nagoya-u.ac.jp>
Date: Wed, 16 Mar 2005 01:44:50 GMT
Local: Tues, Mar 15 2005 8:44 pm
Subject: Re: [Caml-list] OCaml troll on Slashdot
Well, since it seems difficult to hide that I'm an anonymous coward,
I add a few comments for the list. From: padio...@irisa.fr > Yes but this ocaml code use array ? In this particular case, I believe the trouble is rather that the > In that case it supports what the "troll" said, that is > the resulting code is no more "functionnal". > I agree with eijro sumii that ocaml is not just about functionnal > programming but in the mind of many people advocating ocaml is advocating > functionnal programming. > I think the way to answer to those trolls is to teach them the way problem is really geared toward a specific solution. Efficient memoization requires efficient access to memoized results, which in this case can be obtained by mapping states to integers. And there happens to be a trivial mapping. Then any solution will have to iterate on the states. If you look at my translation, I do not mutate arrays (except for Out of curiosity, I also wrote a purely functional version, where The only thing this example shows is that writing in a functional Jacques Garrigue _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||