GNU bug report logs -
#73853
Should and-let* become a synonym for when-let*?
Previous Next
Full log
Message #168 received at 73853 <at> debbugs.gnu.org (full text, mbox):
> remains quite philosophical. And replacing calls of `and-let*' with
> equivalent calls of `when-let*' doesn't make code easier to read, IMO.
Of course it can make it easier to read since the reader doesn't need to
know yet another construct and the subtle difference with its
almost twin.
> Right. The Lisp convention of using `when' for pure control flow and
> `and' for returning values is a good aid to readability.
AFAIK this convention is followed only by some coders, so it doesn't
help readability because you can't rely on it.
> If we don't have and-let*, then we can't use this convention in the case
> that we also want to bind variables.
Then again, we don't have such a "value returning vs not" duplication
and associated convention for `let`, `progn`, `lambda`,
`unwind-protect`, `catch`, `condition-case, ...
The fact we have all three of if/when/and is not a good justification
for `and-let*`.
Stefan
This bug report was last modified 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.