4 ms·
How is the proposed usage (slide #8) different than the bad usage on slide #4 ("shorthand for setting multiple properties on an object")? The code for sharing m
by isnotchicago 14y ago
How is the proposed usage (slide #8) different than the bad usage on slide #4 ("shorthand for setting multiple properties on an object")? The code for sharing module scope works fine as long as you stick with "a.i" instead of just "i" (i.e., are not lazy).
As mentioned elsewhere, using `with` is very slow: http://jsperf.com/with-versus-without http://jsperf.com/with-versus-without