unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* coding standard for allowed arguments of predicates
@ 2020-12-18 14:49 Roland Winkler
  2020-12-18 15:00 ` Philipp Stephani
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Winkler @ 2020-12-18 14:49 UTC (permalink / raw)
  To: emacs-devel

Is there a coding standard for allowed arguments of predicates?
I have always assumed that predicates should accept any type of
argument;  but I cannot find this documented anywhere.

The context of my question is `iso8601-valid-p'.  It assumes that
its argument must be a string.  Is this a bug?  In my usage example,
the argument of `iso8601-valid-p' could also be nil.

If, indeed, predicates should always accept any type of argument,
I suggest to document this in the elisp manual.



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

end of thread, other threads:[~2020-12-18 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 14:49 coding standard for allowed arguments of predicates Roland Winkler
2020-12-18 15:00 ` Philipp Stephani
2020-12-18 21:59   ` Roland Winkler

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