[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What happened to (defun x)?
From: |
David Kastrup |
Subject: |
Re: What happened to (defun x)? |
Date: |
Sat, 24 Nov 2007 23:51:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
martin rudalics <address@hidden> writes:
>> I might have missed the discussion: pre-22 we had considered having
>> (defun nxml-define-char-name-set)
>> be a byte-compiler silencer in the same manner as
>> (defvar preview-version)
>> is a byte-compiler silencer. The obvious advantage over
>> "declare-function" is that one does not need to remember another idiom
>> and name.
>>
>> Is there a particular advantage for a separate declare-function that I
>> just am not able to see?
>
> It's a question of strong vs weak type-checking. The advantage of
> strong type-checking is to catch errors sooner - in the special case
> because a particular file fails to define a declared function. Its
> disadvantage is that you can no more move a defun to another file
> without finding and changing all files that have a declaration for it.
Couldn't an autoload declaration be made to achieve the same effect? It
specifies function and file, too.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: initial nxml merge, (continued)
- Re: initial nxml merge, Glenn Morris, 2007/11/23
- Re: initial nxml merge, Richard Stallman, 2007/11/23
- Re: initial nxml merge, Dan Nicolaescu, 2007/11/24
- Re: What happened to (defun x)?, Dan Nicolaescu, 2007/11/24
- Re: What happened to (defun x)?, Jay Belanger, 2007/11/24