Yup. If we add the option to the compiler, we can do some tests with and without initialization. Strict equality would be a little harder but that should be doable as well. (A temporary find and replace should work even though it might break code. It’ll at least give an idea on the impact to code size.)
Harbs > On Jun 25, 2017, at 10:15 PM, Josh Tynjala <joshtynj...@gmail.com> wrote: > > I'd also be curious to see size comparisons using gzip too, which is pretty > standard in the JS world. > > - Josh > > On Jun 25, 2017 10:57 AM, "Harbs" <harbs.li...@gmail.com> wrote: > > For kicks I just checked my minified code of my app for equality and > inequality checks and there were 5466 instances. Just adding strict > equality would add 3KB to my file size. (out of 1.8 MB, but still...) > > It would be an interesting exercise to see much much adding null > initialization would add to file size. I would guess that it would be > significant. > >> On Jun 25, 2017, at 7:36 PM, Josh Tynjala <joshtynj...@gmail.com> wrote: >> >> I have yet to hear a good reason not to default to null either.