GNU bug report logs - #28254
26.0.50; SRFI-2 and-let*

Previous Next

Package: emacs;

Reported by: Mark Oteiza <mvoteiza <at> udel.edu>

Date: Sun, 27 Aug 2017 20:12:02 UTC

Severity: wishlist

Found in version 26.0.50

Done: Mark Oteiza <mvoteiza <at> udel.edu>

Bug is archived. No further changes may be made.

Full log


Message #97 received at 28254-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 28254-done <at> debbugs.gnu.org, Noam Postavsky <npostavs <at> users.sourceforge.net>
Subject: Re: bug#28254: 26.0.50; SRFI-2 and-let*
Date: Wed, 13 Sep 2017 19:05:37 +0200
Mark Oteiza <mvoteiza <at> udel.edu> writes:

> Ok, great.  All tests passed, so I installed it.  Closing!

Thanks, good work.

One more small thing I thought about after Stefan's question: We have
this sentence in the doc of `if-let*':

| An element can additionally be of the form (VALUEFORM), which is
| evaluated and checked for nil.

Would it ease understanding if we would add something like "i.e. you can
omit the SYMBOL if you are only interested in the test result".

Oh, and I find we have some inconsistency: I haven't looked how the
behavior was before, but I see that `if-let*' (and thus `when-let*')
treats an empty VARLIST as failure (the ELSEs are executed).  Contrary
to `and-let*', which treats it as success.  IMO, `and-let*' does what is
expected, and we should change `if-let*' to behave accordingly (and as
the documentation suggests).

WDYT?


Thanks,

Michael.




This bug report was last modified 7 years and 253 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.