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
prefer x == nil to x.isNil #16191
prefer x == nil to x.isNil #16191
Conversation
How about deprecate instead? |
Sorry, even though I did say that, it's not covered by an RFC and I dislike these disruptions more and more. I don't want to see code updates from |
people copy what's in stdlib though; at least a (single) PR that would replace all usages of |
It's not pointless. It sidesteps the |
which problem? Maybe you're referring to #15595 (isNil worked for procvar but not |
User definitions of |
If |
good points, but then I'd prefer (somewhat related: nim-lang/RFCs#224, |
Let me assume that
x == nil
orx != nil
is preferred.https://discord.com/channels/371759389889003530/371759389889003532/696718991019999252
EDITED:
So which one is preferred? We need some docs for either of situations I think.