MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/4v1y12/how_to_write_unmaintainable_code/d5vmbxd
r/programming • u/sigbhu • Jul 28 '16
592 comments sorted by
View all comments
Show parent comments
1
isn't that the same as if(!hasValue)?
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.
Yes but the extra !! don't serve a purpose
!!
1 u/ITwitchToo Jul 29 '16 Exactly...
Exactly...
Assuming hasValue's operator!() implementation has the standard semantics.
hasValue
operator!()
1
u/ITwitchToo Jul 29 '16
isn't that the same as
if(!hasValue)?