[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Typo in defconst-1 and defvar-1 docstrings?
From: |
Philip Kaludercic |
Subject: |
Re: Typo in defconst-1 and defvar-1 docstrings? |
Date: |
Thu, 06 Oct 2022 18:48:17 +0000 |
Philip Kaludercic <philipk@posteo.net> writes:
> I was reading through the implementation of defconst-1, but was confused
> by the docstring that states:
>
> More specifically behaves like (defvar SYM 'INITVALUE DOCSTRING).
>
> Isn't the point of defconst-1 as a functional variant of defconst, that
> SYM will evaluate to a symbol? And why should INITVALUE be quoted?
> Unless I am mistaken, this patch ought to resolve the confusion:
And related to defconst (which is why I was looking at the definition in
the first place), is there a way to check if a variable was declared
using defconst instead of defvar?