help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Closures - do you understand them well?


From: Emanuel Berg
Subject: Re: Closures - do you understand them well?
Date: Thu, 02 Mar 2023 19:25:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

>>> Are we talking lexical let-closures? Why not?
>>
>> Unless I still misunderstand your question: Lisp is
>> a high-level language, not Assembler, so like you don't
>> modify the bytes of byte-code functions by hand, you also
>> don't edit the internal representation of closures.
>
> Maybe I should mention oclosures where you can access
> variables with accessor functions "from the outside".
> But this is also a high-level thing, the internal structure
> of oclosures is not important and an implementation like for
> "normal" function values.

https://www.iro.umontreal.ca/~monnier/oclosure.pdf

For some reason I'm not attracted to that idea like I was
top-level lexical let-closures, i.e.

(let ((...))
  (defun (...) ...) )

but I should take a look at that document and not just make up
my mind, alltho that works most of the time by now since
I trust my intuition which is a trained skill like any other.

Okay, so when are oclosures used?

When they are useful, right?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]