[CM] Question about unexpected let binding behaviour
Norman Gray
gray at nxg.name
Wed Apr 22 13:37:58 PDT 2026
Bill, hello.
On 22 Apr 2026, at 19:56, bil at ccrma.Stanford.EDU wrote:
> I think inlet and sublet should treat duplicate
> variables as an error. Will this greatly
> affect anyone?
I'm not sure if I'm an ‘anyone’ here, and I didn't really follow the original let/varlet bug reduction, but I'm uncomfortable with anything that can't be articulated by straight 'let'. So anything like a ‘duplicate variable’ in a let, that is something other than a let-variable being shadowed by an inner let, would I hope be an error.
Partly this is on the grounds of formal purity, but partly because I'd prefer not to have to understand reified lets.
In my own usage of s7, I do use openlets fairly extensively, because that's how s7 does objects (and does them nicely). But that is firmly boxed in my mind as a bit of magic specific to s7's particular implementation of Scheme.
Best wishes,
Norman
--
Norman Gray : https://nxg.me.uk
More information about the Cmdist
mailing list