News for hackers. Stuff that matters.
Re:Counting set bits in an interesting way by adrian_b on Saturday April 30, 2022 @03:22PM (#31218487)
Which of the 2 versions is more readable is a matter of personal opinion.

Many people consider that the most readable programs are those in which nothing is written in a longer more complex form, if it can be written in a shorter simpler form.

The implicit conversion of a value of any type to a Boolean value is not something invented by C. This was first used in LISP I (1960), then in many other programming languages.

There are no comments on this comment yet.