unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Taylan Kammer <taylan.kammer@gmail.com>
To: Olivier Dion <olivier.dion@polymtl.ca>,
	Tim Meehan <btmeehan@gmail.com>, guile-user <guile-user@gnu.org>
Subject: Re: Somehow I have got this "thunk" thing wrong.
Date: Sat, 6 Mar 2021 17:55:02 +0100	[thread overview]
Message-ID: <58f9bcc8-a241-66d0-2396-c6dabb6ba273@gmail.com> (raw)
In-Reply-To: <87lfb1yvfx.fsf@clara>

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



  parent reply	other threads:[~2021-03-06 16:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06  0:05 Somehow I have got this "thunk" thing wrong Tim Meehan
2021-03-06  0:26 ` Christopher Baines
2021-03-06  3:40   ` Tim Meehan
2021-03-06  3:43     ` Tim Meehan
2021-03-06  0:31 ` Olivier Dion via General Guile related discussions
2021-03-06  0:48   ` Aleix Conchillo Flaqué
2021-03-06 16:55   ` Taylan Kammer [this message]
2021-03-06 17:16     ` Olivier Dion via General Guile related discussions

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58f9bcc8-a241-66d0-2396-c6dabb6ba273@gmail.com \
    --to=taylan.kammer@gmail.com \
    --cc=btmeehan@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=olivier.dion@polymtl.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).