help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To `boundp' or not to `boundp'?


From: Michael Heerdegen
Subject: Re: To `boundp' or not to `boundp'?
Date: Tue, 01 Sep 2015 19:13:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Drew Adams <drew.adams@oracle.com> writes:

> If they really wanted a macro for this, it should have been called
> something that reflects what it does, e.g., `var-value-or-nil' or
> `if-bound-then-value-else-nil'.

One needs this quite often, so it's good to factor it out.

I've no strong opinion about the name, but I guess the macro was indeed
intended for cases where the return value is used as a boolean.  There
are other use cases where the name then is confusing.  Maybe
`symbol-value-safe' in analogy to `car-safe' would be better?  Then it
would have to be a function, though.


Regards,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]