unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Usefulness of (t nil) as the last sexp in (cond ...) constructs?
@ 2012-08-19  7:07 Bastien
  2012-08-19 10:23 ` Jeremiah Dodds
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bastien @ 2012-08-19  7:07 UTC (permalink / raw)
  To: emacs-devel

There are many places in *.el elisp files where we have this construct

(cond (...)
      (...)
      (t nil))

My understanding is that (t nil) is useless, since the ̀t' condition 
is only tested if other conditions are `nil'.

What is the purpose of (t nil)?

Can we safely remove it?

-- 
 Bastien




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-19 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-19  7:07 Usefulness of (t nil) as the last sexp in (cond ...) constructs? Bastien
2012-08-19 10:23 ` Jeremiah Dodds
2012-08-19 11:29 ` Achim Gratz
2012-08-19 12:00   ` Thien-Thi Nguyen
2012-08-19 12:45   ` Bastien
2012-08-19 12:06 ` Juanma Barranquero

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).