🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by steve g Sat, 10 Oct 2026 23:07
Re: GNU Emacs native compiled functions (was Re: Malicious Computer Architecture)
#17
Author: steve g
Date: Sat, 10 Oct 2026 23:07
41 lines
3358 bytes
Kaz Kylheku <046-301-5902@kylheku.com> writes:

>> The biggest problem with dynamic scoping is variable shadowing.
>
> Not sure about "biggest".
>
> Variable shadowing can be worked around with conventions, leaving only
> accidents.

Umm, not the best programmer in the world, but isn't namespace an issue?

> Use *earmuffs* for variables intended to be context variables
> (true specials).

How do you define a context? I was thinking about sessions.

> Omit them for locals.

How do you mean? How do you implement local bindings? aside from
make-local-variable (emacs)? I usually use let.

> Do not use SETQ on a variable you did not bind
> with LET or other binding construct: this needs discipine,
> verification/tooling, because people make typos:

How can you determine bindings in the future or the past?

> (let ((foobar 3))
>   (setq fubar 42)) ; clobbered caller's private fubar
>
> The lack of closure over bindings is a big problem. That has workarounds
> but they are not that nice and not just coding conventions/discipine.
>
>> I usually use the same name for the same variables; str, len, pos, epos, idx,
>> rdx; horrifying.
>
> So if you make a typo somewhere, either in the binding or the
> referencing, so that they are talking past each other, you are working
> with the wrong frame's variable of the same name.

No, I just stubborn.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads