zsh-workers
 help / color / mirror / code / Atom feed
From: Greg Klanderman <gak@klanderman.net>
To: Zsh list <zsh-workers@zsh.org>
Subject: anonymous functions
Date: Fri, 11 Feb 2011 12:17:46 -0500	[thread overview]
Message-ID: <m3zkq2bidh.fsf_-_@klanderman.net> (raw)
In-Reply-To: <AANLkTinerHxXBs4vc_+UXFMxsrui7EKBNhdH01a0wqn6@mail.gmail.com> (Bart Schaefer's message of "Fri, 11 Feb 2011 08:26:13 -0800")

>>>>> On February 11, 2011 Bart Schaefer <schaefer@brasslantern.com> wrote:

> If your zsh is recent enough to have anonymous functions

Why are these things called 'anonymous functions'?  That name connotes
lambda, which would create an unnamed function you could store in a
variable, pass as an argument, return from a function, and call at
some later time.  They should be called 'local scopes' or 'local
blocks' or even 'blocks', and use their own reserved word.

The concepts are of course related; in lisp-like languages

(let ((a <e1>) (b <e2>) (c <e3>)) <body>)

is of course equivalent to

((lambda (a b c) <body>) <e1> <e2> <e3>)

Greg


       reply	other threads:[~2011-02-11 17:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTikFsJGitoiU49kJphErOsxbCN_BrerNcaHcb2kR@mail.gmail.com>
     [not found] ` <AANLkTinerHxXBs4vc_+UXFMxsrui7EKBNhdH01a0wqn6@mail.gmail.com>
2011-02-11 17:17   ` Greg Klanderman [this message]
2011-02-11 18:17     ` Bart Schaefer
2011-02-11 18:21       ` Bart Schaefer

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

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

  git send-email \
    --in-reply-to=m3zkq2bidh.fsf_-_@klanderman.net \
    --to=gak@klanderman.net \
    --cc=zsh-workers@zsh.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).