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
Check for nullity using "is null" or "is object" #1624
Conversation
You seemed excited when I mentioned this, @thomaslevesque. Feel like making @jaredpar happier by two developers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seemed excited when I mentioned this, @thomaslevesque.
Not excited enough to go over the whole code base to replace usages of == null
and != null
, but since you were motivated enough to do it... Why not 😉
Thanks @blairconrad, LGTM!
You'll need to squash before I can merge, though |
Jared Parsons lays out the reasons in https://twitter.com/jaredpar/status/1171478965355024384: > ... "x is object" is either a) a null check or b) does > not compile. In the case "x" is known to be a struct the compiler will > emit a diagnostic. > > Similarly "x is null" has the same properties except it's always a > null check vs. a non-null check
be1dfa8
to
5d0bcc0
Compare
Search and replace is a wonderful thing.
You can at least do it when Ah! I just tried with an Squashed! Thanks for the review and eventual merge. |
Thanks @blairconrad ! |
This makes me happy 😄 |
This change has been released as part of FakeItEasy 5.3.0. |
Jared Parsons lays out the reasons in
https://twitter.com/jaredpar/status/1171478965355024384: