Morendil comments on Prisoner's Dilemma (with visible source code) Tournament - Less Wrong

47 Post author: AlexMennen 07 June 2013 08:30AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (232)

You are viewing a single comment's thread. Show more comments above.

Comment author: AlexMennen 05 June 2013 10:59:37PM 0 points [-]

Racket apparently has terrible namespace conventions. I had the same problem when I tried to use it to interpret a file, but when I type a program directly into the interpreter, eval works fine. I'll either figure out how to get eval to work when I run a file, or I'll just paste people's programs into the interpreter. Either way, assume eval will work properly.

Comment author: Morendil 07 June 2013 05:29:47PM *  3 points [-]

The Guide says:

#lang racket
(define ns (make-base-namespace))
(eval '(cons 1 2) ns) ; works

and indeed it works.