guile-user
[Top][All Lists]
Advanced

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

Re: Somehow I have got this "thunk" thing wrong.


From: Taylan Kammer
Subject: Re: Somehow I have got this "thunk" thing wrong.
Date: Sat, 6 Mar 2021 17:55:02 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 06.03.2021 01:31, Olivier Dion via General Guile related discussions
wrote:
> You've quoted the whole s-exp.  Which means lambda is never applied.
> You have to apply lambda in order to create a procedure.

Just a bit of pedantry on the terms: 'lambda' is not "applied" anyway,
because it's a special form and not a procedure.

The term "apply" is used when referring to procedures.  E.g. you would
apply 'list', 'cons', 'vector-ref' and so on, but you wouldn't apply
'lambda', 'if', 'define' and so on.

In other words, if you can pass it as an argument to 'apply', you can
"apply" it.  E.g. '(apply lambda (list ...))' is invalid syntax.

I think the term "evaluate" would be preferred here, as in: "the
'lambda' is quoted so it won't be evaluated."

- Taylan



reply via email to

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