Replies: 1 comment
-
I don't see this expression used very often either, but it seems that using double negation allows you to check whether a pointer is valid. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Code of Conduct
Contents
Hi,
When I read code like this:
At first glance I thought
!!
is a new operator introduced by newer version of c++, but then I realized it's actuallyNOT
operator for 2 continuous times.I would say this is not necessary.
Can we have a style guide related to it? either forbid it or encourage it?
Beta Was this translation helpful? Give feedback.
All reactions