Difference between define, let and set!
Your confusion is reasonable: ‘let’ and ‘define’ both create new bindings. One advantage to ‘let’ is that its meaning is extraordinarily well-defined; there’s absolutely no disagreement between various Scheme systems (incl. Racket) about what plain-old ‘let’ means. The ‘define’ form is a different kettle of fish. Unlike ‘let’, it doesn’t surround the body (region where … Read more