[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The function naming convention used by Emacs.
From: |
Emanuel Berg |
Subject: |
Re: The function naming convention used by Emacs. |
Date: |
Sun, 26 Sep 2021 13:49:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
2QdxY4RzWzUUiLuE wrote:
>> As far as function names are concerned, are there some
>> established conventions used by Emacs? For example,
>> I noticed that there are so many functions in Emacs named
>> by the suffix `-p', say, `file-exists-p', `ht-equal-p', and
>> so on. But I still can't figure out the meaning of this
>> suffix. Any tips will be appreciated.
>
> The -p suffix is short for "predicate"; so file-exists-p is
> true if and only if the argument names and existing file.
> I learned of that convention from Common Lisp; I don't know
> the entire history.
Me neither :)
But it is from Predicate Logic which is an extension of
Propositional Logic ...
--
underground experts united
https://dataswamp.org/~incal