unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Making while interruptable
Date: Tue, 07 Jul 2009 07:43:09 +0900	[thread overview]
Message-ID: <87skh9sa9u.fsf@catnip.gol.com> (raw)
In-Reply-To: <e01d8a50907061240k399a2d29v989a222632431900@mail.gmail.com> (Lennart Borgman's message of "Mon, 6 Jul 2009 21:40:44 +0200")

Lennart Borgman <lennart.borgman@gmail.com> writes:
> The idea is that the user with some let bound variable can control how
> every call to `while' handles pending input. If pending input is
> detected then `while' will throw to a catch symbol that is let bound
> by the user.

This is very, very, bad.  It _will_ screw up lots of code in hard to
debug and confusing ways.

Using a dedicated form like `while-no-input' is proper thing to do.

-Miles

-- 
My spirit felt washed.  With blood.  [Eli Shin, on "The Passion of the Christ"]




  reply	other threads:[~2009-07-06 22:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 19:40 Making while interruptable Lennart Borgman
2009-07-06 22:43 ` Miles Bader [this message]
2009-07-06 23:02   ` Lennart Borgman
2009-07-06 23:26     ` Miles Bader
2009-07-06 23:46       ` Lennart Borgman
2009-07-06 23:58         ` Miles Bader
2009-07-07  0:17           ` Lennart Borgman
2009-07-11 19:35 ` Stefan Monnier

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=87skh9sa9u.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=lennart.borgman@gmail.com \
    /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).