[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.
- To `boundp' or not to `boundp'?, Alexander Shukaev, 2015/09/01
- Re: To `boundp' or not to `boundp'?, Dmitry Gutov, 2015/09/01
- Message not available
- Re: To `boundp' or not to `boundp'?, Barry Margolin, 2015/09/01
- RE: To `boundp' or not to `boundp'?, Drew Adams, 2015/09/01
- member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/01
- RE: member returns list (was: Re: To `boundp' or not to `boundp'?), Drew Adams, 2015/09/01
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/01
- RE: member returns list (was: Re: To `boundp' or not to `boundp'?), Drew Adams, 2015/09/01
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/01
- RE: member returns list (was: Re: To `boundp' or not to `boundp'?), Drew Adams, 2015/09/02
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/02