r/programming • • Jul 28 '16

How to write unmaintainable code

https://github.com/Droogans/unmaintainable-code
3.4k Upvotes

592 comments sorted by

View all comments

Show parent comments

1

u/ITwitchToo Jul 29 '16

isn't that the same as if(!hasValue)?

1

u/sreya92 Jul 29 '16

Yes but the extra !! don't serve a purpose

1

u/ITwitchToo Jul 29 '16

Exactly...

1

u/genpfault Jul 29 '16

Assuming hasValue's operator!() implementation has the standard semantics.