Daphne Preston-Kendal
unread,Sep 20, 2025, 5:24:11 AM (2 days ago) Sep 20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scheme-re...@googlegroups.com
This error goes back to R5RS and is also present in R6RS.
Section 3.1 ‘Variables, syntactic keywords, and regions’:
‘The region is determined by the particular binding construct that establishes the binding; if the binding is established by a lambda expression, for example, then its region is the entire lambda expression.’
The region of a binding established by a lambda expression only encompasses the formals and body of the lambda expression, not the entire expression.
Otherwise an expression like (lambda (lambda) …) would introduce a paradox where ‘lambda’ must refer both to the ‘lambda’ syntactic keyword and to the variable bound by the expression.
Daphne