-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
treewide: replace (eq/equal foo nil)
with (null foo)
#1884
Conversation
Thanks for the PR @Hi-Angel. In the interests of being technically correct (which is the point of this PR anyway!) I think most (all?) of these should use
and I think these are truth values rather than empty lists..? |
Sure, good point. Done! |
(eq/equal foo nil)
with (null foo)
(eq/equal foo nil)
with (not foo)
That is not true, in most of these cases |
Well, the variables look like are truth values, i.e. I'm okay with whatever. It's a purely stylistic matter, |
Neither is a boolean value. ( |
@axelf4 my focus was more on the first half of the sentence:
which these are not. I interpreted the second half of the sentence to be non-exhaustive:
i.e. not when it is considered a truth value, but also not when it is a stand-in for any other symbol, etc? So do you think this PR is more correct with |
It's okay, I made a backup branch for the case we decided to revert everything to the older version 😊 I'll take a closer look to see if anything looks potentially like a boolean value to have there At the end of the day, |
The lack of clarity in the manual is reported here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70392 |
Nice! I agree that the documentation was ambiguous - good to get that cleared up. What matters IMO is just that the completion functions stay consistent with those in |
Okay, so, I looked through changed locations, and neither is a boolean value, i.e. they all take some symbolic values as well besides |
(eq/equal foo nil)
with (not foo)
(eq/equal foo nil)
with (null foo)
Just a trivial refactoring