Unrelated, but from the title, I thought the article would be about the!! double negation operator, which gives a simple way to check if an integer is non-zero. In C:
Learn something new every day.
- I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
Learn something new every day.
- I am a senior software engineer working in industry, teaching and writing on software design, SOLID principles, DDD and TDD.
Location
Buenos Aires
Education
Computer Science Degree at Universidad de Buenos Aires
Unrelated, but from the title, I thought the article would be about the
!!
double negation operator, which gives a simple way to check if an integer is non-zero. In C:That's a very basic trick, but I like it :)
That is another code smell!!
I will write about it soon
Haha, I have to admit it's not the most readable piece of code :)
Funny thing. You already found out it smells :)