I have DrRacket Version 5.0.2, I've spent like 3 hours already looking for the right libraries to make while
, dolist
, and dotimes
work. I know how to use them but I just can't find the right libraries. When I type dotimes
for example it tells me unknown identifier.
PS: Do you have to use define-syntax
in order to define these loops? I've tried (require srfi/42)
but it does not work. I'm using #lang scheme
.
while
,dolist
anddotimes
are Common Lisp forms. You certainly could write macros for them in Scheme, but maybe you really want a Common Lisp environment instead? – user725091#lang scheme
is a backwards compatibility language and is deprecated so you probably want to use#lang racket
. Also, I suggest reading the guide as well (it's pretty good for these sorts of questions). – Asumu Takikawa