From: Mark Buda <hermit@clark.net>
Cc: ding@gnus.org
Subject: Re: mailcap-viewer-lessp is just plain wrong
Date: 02 Nov 1999 08:55:14 -0500 [thread overview]
Message-ID: <871za9ov5p.fsf@pazuzu.eudaemonia.org> (raw)
In-Reply-To: Shenghuo ZHU's message of "01 Nov 1999 16:24:25 -0500"
>>>>> "ZSH" == Shenghuo ZHU <zsh@cs.rochester.edu> writes:
Mark> Even if mine isn't right, the existing function is just
Mark> wrong. How can X be better if only one is wild, regardless
Mark> of which one is wild?
ZSH> Your argument is right, but I don't think yours function is right. In
ZSH> the case that both X and Y are lisp, X is wild, while Y is not wild,
ZSH> your function returns 't. How can X be better than Y?
ZSH> Another problem is, in the case that X is wild and list, Y is neither
ZSH> wild nor list, both evaluations of (mailcap-viewer-lessp x y) and
ZSH> (mailcap-viewer-lessp y x) return 't for both the functions.
Well, by better I meant that mine produced the correct value in the
case I was concerned about :-) Perhaps I miscopied something from my
sheet of paper (which I threw out, so I'll never know). This should be
right, though. Better, anyway.
(cond
; if only one is wild, the other one is better
((and x-wild (not y-wild))
nil)
((and (not x-wild) y-wild)
t)
; otherwise, if only one is lisp, it is better
((and x-lisp (not y-lisp))
t)
((and (not x-lisp) y-lisp)
nil)
; otherwise, compare them some other arbitrary way
(t
(blah blah blah)))
--
I get my monkeys for nothing and my chimps for free.
http://www.clark.net/pub/hermit/
next prev parent reply other threads:[~1999-11-02 13:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-01 19:42 Mark Buda
1999-11-01 21:24 ` Shenghuo ZHU
1999-11-02 13:55 ` Mark Buda [this message]
1999-11-03 20:33 ` Shenghuo ZHU
1999-11-04 11:17 ` Toby Speight
1999-11-04 15:49 ` Shenghuo ZHU
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=871za9ov5p.fsf@pazuzu.eudaemonia.org \
--to=hermit@clark.net \
--cc=ding@gnus.org \
/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).