Re: !! operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Thanks for the explanation. I was able to practice C for 18 years in
> numerous projects without having the opportunity to see it. I will got
> to bed less ignorant tonight. :-)

Sorry if my comment came off as dismissive.  I was only trying to
explain why I'd assume it's intentional.  I'll readily admit that
I had the exact same reaction when I first saw this construct.
>From an objective code-readability standpoint it's probably a bad
idiom.  While it is definitely concise, the syntax gives no hint
as to its intent, and it's often unnecessary.  This and the dozen
other instances of !! in our code should probably be eliminated
or replaced with a macro.  TO_BOOLEAN, perhaps?
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux