Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Christian Romney
On Aug 21, 9:57 pm, Base wrote: > Very very nice! > Thanks for the encouragement! I should publicly thank Alan Malloy as well, who took the trouble to submit a patch improving some rather unidiomatic code. Thanks to all who have looked at it–I really appreciate the feedback. I'm really excited

Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Christian Romney
On Aug 22, 10:04 am, Dave Ray wrote: > I'm not sure why this code was written this way, but Marginalia has no > problem using docstrings. Compare it's own docs: > Chalk it up to noob mistake... :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To

Aw: Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Stefan Kamphausen
Hi, Am Montag, 22. August 2011 16:08:20 UTC+2 schrieb lpetit: > > 2011/8/22 Dave Ray > >> I'm not sure why this code was written this way, but Marginalia has no >> problem using docstrings. Compare it's own docs: >> [...] > > ok, thanks Dave > that Marginalia also understands docstrings notwith

Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Laurent PETIT
2011/8/22 Dave Ray > I'm not sure why this code was written this way, but Marginalia has no > problem using docstrings. Compare it's own docs: > > http://fogus.me/fun/marginalia/ > > and the code they were generated from: > > https://github.com/fogus/marginalia/blob/master/src/marginalia/core.c

Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Dave Ray
I'm not sure why this code was written this way, but Marginalia has no problem using docstrings. Compare it's own docs: http://fogus.me/fun/marginalia/ and the code they were generated from: https://github.com/fogus/marginalia/blob/master/src/marginalia/core.clj Cheers, Dave On Mon, Aug 2

Re: Prisoner's Dilemma in Clojure

2011-08-22 Thread Laurent PETIT
Hi, I was curious to see Marginalia in action, but was then surprised to see a lot of code like this: ;; Produce a total score as the sum of the points awarded during each round. (defn total [strategy] (reduce + (:points strategy))) That is, no more docstring, which is replaced in favor of a

Re: Prisoner's Dilemma in Clojure

2011-08-21 Thread Base
Very very nice! On Aug 18, 10:34 pm, Christian Romney wrote: > Hi all, > > As part of my attempt to learn Clojure, I've cooked up a simple > Prisoner's Dilemma simulation. I'd love any feedback the group would > care to provide about my implementation, as I'm eager to improve. I've > got thick s

Prisoner's Dilemma in Clojure

2011-08-19 Thread Christian Romney
Hi all, As part of my attempt to learn Clojure, I've cooked up a simple Prisoner's Dilemma simulation. I'd love any feedback the group would care to provide about my implementation, as I'm eager to improve. I've got thick skin so fire away! Annotated source: http://xmlblog.github.com/prisoners/