nshepperd comments on Prisoner's Dilemma (with visible source code) Tournament - Less Wrong
You are viewing a comment permalink. View the original post to see all comments and the full post content.
You are viewing a comment permalink. View the original post to see all comments and the full post content.
Comments (232)
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.
In both
#lang racketand#lang scheme,(eval form)by itself apparently runsformin a basically empty namespace. I've personally been using the following incantation for evaluating anything in the "standard" namespace:Then
(ueval source-code)evaluatessource-codein a clean namespace with all the normal builtins, includingeval.