The general principle is optimization. Optimization looks for specific patterns. What you wrote below is not one of the patterns. Would be fun to see how often that pattern exists though. IMO, it would not make sense to initialize every boolean because 1% of the boolean expressions require optimization if alternative patterns exist that allow for smaller code.
But again, we don't have to agree, just provide compiler options. -Alex On 6/8/17, 3:17 PM, "Justin Mclean" <jus...@classsoftware.com> wrote: >Hi, > >Also how wold you fix this? > >if (someBoolean == (complex expression that equals false)) > >Thanks, >Justin