It sounds like there are differing opinions.  Some folks want all booleans
to be initialized to false, just in case someone uses a pattern like:

  if (someBoolean === false)

I would rather find where I've written that pattern so I can manually
change it to:

  if (!someBoolean)

since there is no semantic difference in AS.  And then I can avoid the
expense of initializing boolean variables.

We don't have to agree.  We can teach the compiler to do both.

-Alex


On 6/7/17, 5:23 PM, "Justin Mclean" <jus...@classsoftware.com> wrote:

>Hi,
>
>>  Booleans should definitely default to false and Numbers to NaN, if
>>they aren't explicitly initialized with a value
>
>Anyone have a differing option?
>
>Thanks,
>Justin

Reply via email to