I know but it highlights that it's intended to evaluate the result instead of being a typo ( = instead of ==). Most code editors also see the 'Assignment in condition' as a code smell. With the added braces the editor knows it's intended.