unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: michael_heerdegen@web.de
Cc: 13422@debbugs.gnu.org
Subject: bug#13422: 24.2.91; Feature request: Add a macro always expanding to nil
Date: Sat, 12 Jan 2013 19:34:54 -0500	[thread overview]
Message-ID: <jwvip72c4cl.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ip72jnbr.fsf@web.de> (Michael Heerdegen's message of "Sat, 12 Jan 2013 18:58:00 +0100")

> it has several advantages:

Of course, it also has its down sides:

- returns nil, so (if foo (discard bar) then) runs the `then' in the
  `else' branch.

- only works at those syntactic places where an expression is expected
  (e.g. (let ((a 1) (discard exp1 exp2) (b 2)) blabla) doesn't work.

In any case, I think the current comments are good enough, and save the
programmer from having to choose which kind of comment to use.


        Stefan





  parent reply	other threads:[~2013-01-13  0:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12 17:58 bug#13422: 24.2.91; Feature request: Add a macro always expanding to nil Michael Heerdegen
2013-01-12 20:19 ` Andreas Schwab
2013-01-12 21:50   ` Michael Heerdegen
2013-01-12 23:15     ` Andreas Schwab
2013-01-12 23:41       ` Michael Heerdegen
2013-01-12 23:58         ` Andreas Schwab
2013-01-13  0:34 ` Stefan Monnier [this message]
2013-01-13  2:36   ` 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=jwvip72c4cl.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=13422@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).