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: Wed, 18 Jan 2023 13:08:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Eric Abrahamsen wrote:

> But I've always found multiple layers of indirection
> confusing (recursion/TCO and nested macros included)

TCO = Tail-Call Optimization, so you can use recursion without
blowing up the stack ...

But recursion isn't confusing, it makes for elegant/textbook
programs, it's not really a layer of indirection, is it?

Nested macros tho are like the definition of that (extra
layer/indirection) since instead of

you program -> a program -> that does stuff

it is

you program -> a program -> that expands into a program ->
that does stuff

It makes the programming language programmable ...

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




reply via email to

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