From: Daniel Pittman <daniel@rimspace.net>
Subject: Re: cl in message.el, etc
Date: Sun, 21 Apr 2002 12:28:11 +1000 [thread overview]
Message-ID: <87662lkcp0.fsf@inanna.rimspace.net> (raw)
In-Reply-To: <87hem68ean.fsf@alum.wpi.edu> (Josh Huber's message of "Sat, 20 Apr 2002 13:34:24 -0400")
On Sat, 20 Apr 2002, Josh Huber wrote:
> Daniel Pittman <daniel@rimspace.net> writes:
[...]
>> I screwed up in my thinking about the problem space and, as a
>> result, gave you something that works if and only if (= (length
>> mft-regexps) (length recipients)).
>
> Ah, okay. It's still good to know -- the cl 'and' loop construct only
> works with lists of equal length?
Saying (loop for foo in bar and qux in quux) means that each iteration
will bind 'foo' to the next element of 'bar' /and/ 'qux' to the next
element of 'quux', in parallel.
Once either list is empty the loop terminates, by default. So, they only
perform as many steps as the shortest list.
>> You want the first entry in recipients that matched any regexp in
>> mft-regexps, right?
>
> That's correct.
Good. It occurred to me that I might have had that wrong as well. :)
[... correct code dropped ...]
> Yep, this is it.
That should be as good as, or better than, the existing code. It should
also be comprehensible, so I would be happy to see it committed. `loop'
is a macro and shouldn't be a runtime CL issue...
Daniel
--
The sky above the port was the color of television, tuned to a dead channel.
-- William Gibson, __Neuromancer__
next prev parent reply other threads:[~2002-04-21 2:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 21:41 Josh Huber
2002-04-19 22:13 ` Josh Huber
2002-04-20 3:43 ` Daniel Pittman
2002-04-20 15:14 ` Josh Huber
2002-04-20 16:03 ` Daniel Pittman
2002-04-20 17:34 ` Josh Huber
2002-04-21 2:28 ` Daniel Pittman [this message]
2002-04-22 8:18 ` Kai Großjohann
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=87662lkcp0.fsf@inanna.rimspace.net \
--to=daniel@rimspace.net \
/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.
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).