[CM] When does a let get created?

Woody Douglass wdouglass at carnegierobotics.com
Fri Sep 24 06:41:20 PDT 2021


I'm trying to write a function that makes a simple dictionary of
informaton

(define (make-info name location description) (curlet))

but it seems that let gets reused or something -- the values seem to
change when the function gets called more then once

i could just use associative lists by doing

(define (make-info name location description) (let->list (curlet)))

but i really like how lets work (applicable, etc...)
What assumption have i gotten wrong? why doesn't a new let get created
per function call?

Thanks,
Woody Douglass



More information about the Cmdist mailing list