unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Nicolas Petton <nicolas@petton.fr>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] map 988d721: Add a pcase pattern for maps and `map-let' based on it
Date: Thu, 04 Jun 2015 18:39:49 -0400	[thread overview]
Message-ID: <jwv6173w19r.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <87eglrmdmp.fsf@petton.fr> (Nicolas Petton's message of "Thu, 04 Jun 2015 22:18:06 +0200")

>> - let KEY be evaluated rather than having it be quoted.  I.e. require
>> the programmer to write 'a when looking up the key `a'.  It costs an
>> extra quote in some/many cases, but does give you extra power.
> Do you think it would be worth it? I'm not sure.

Not sure either; it will clearly depend on actual uses.
This said, if the main case where the quote would be needed is when KEY
is a (non-keyword) symbol, then it's probably worth the extra
flexibility since you could say that an element of the form SYMBOL is
treated as equivalent to ('SYMBOL SYMBOL), so the extra quote will be
very rarely needed.


        Stefan



  reply	other threads:[~2015-06-04 22:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20150602201956.22733.21800@vcs.savannah.gnu.org>
     [not found] ` <E1YzsfE-0005vH-4d@vcs.savannah.gnu.org>
2015-06-03  1:06   ` [Emacs-diffs] map 988d721: Add a pcase pattern for maps and `map-let' based on it Stefan Monnier
2015-06-04 20:18     ` Nicolas Petton
2015-06-04 22:39       ` Stefan Monnier [this message]
2015-06-05  8:09         ` Nicolas Petton
2015-06-07 18:36         ` Michael Heerdegen
2015-06-08 14:16           ` Stefan Monnier
2015-06-08 15:34             ` 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=jwv6173w19r.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=nicolas@petton.fr \
    /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).