unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Mark Oteiza <mvoteiza@udel.edu>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master 4612b2a 1/2: Implement and-let*
Date: Tue, 12 Sep 2017 13:29:58 -0400	[thread overview]
Message-ID: <20170912172958.GA11109@holos.localdomain> (raw)
In-Reply-To: <jwvvaknhm0l.fsf-monnier+emacsdiffs@gnu.org>

On 12/09/17 at 01:21pm, Stefan Monnier wrote:
> >     (internal--build-binding-value-form): Extend to account for
> >     solitary symbols and (EXPR) items in binding varlist.
> 
> We're forced to accept those forms in `let` and `let*` for historical
> reasons, but why do we want to also accept them in newer constructs?

Solitary symbols are expanded as x -> (x (and PREV x)), so it's not the
historical behavior.  (EXPR) means EXPR is an s-expression, which
doesn't make sense in let or let*, e.g.:

   (let (x)
     (and-let* (((null x))) "it's null"))



  reply	other threads:[~2017-09-12 17:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170912171813.26498.77867@vcs0.savannah.gnu.org>
     [not found] ` <20170912171815.13B9520DE6@vcs0.savannah.gnu.org>
2017-09-12 17:21   ` [Emacs-diffs] master 4612b2a 1/2: Implement and-let* Stefan Monnier
2017-09-12 17:29     ` Mark Oteiza [this message]
2017-09-13 16:39     ` Richard Stallman
2017-09-14 15:46       ` Michael Heerdegen

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/emacs/

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

  git send-email \
    --in-reply-to=20170912172958.GA11109@holos.localdomain \
    --to=mvoteiza@udel.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).