[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Executing function only if another function is defined
From: |
Emanuel Berg |
Subject: |
Re: Executing function only if another function is defined |
Date: |
Mon, 25 Jul 2022 13:45:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>>> (defun docboost (fname doc-boost)
>>> "Appends a string to the documentation of a function.
>>> FNAME Name of function
>>> DOC-BOOST Documentation"
>>
>> Nice!
>>
>> It should be automated to appear like that by default and
>> automatically, and incorrect docstrings shouldn't not just be
>> "considered" bugs, they should be bugs ...
>
> What don't you agree with exactly? The docstring in the
> function definition would only be a brief description.
> If additional information in required, that can be added
> later, as not to encumber the function with too much text
> before one can start seeing the implementation.
?????????
>> I don't see why not?
>
> In case there is a superior way to test whether the function
> was defined.
Uhm ... is there a difference between the questions "is
X a function" and "is X defined as a function"?
--
underground experts united
https://dataswamp.org/~incal