slimit icon indicating copy to clipboard operation
slimit copied to clipboard

Optimize consecutive declarations

Open rspivak opened this issue 13 years ago • 1 comments

var a = 10; var b = 20;  ==>  var a=10,b=20;

rspivak avatar Jan 15 '12 15:01 rspivak

var a=10; var b=a; => var a=10,b=a;. Is that case safe also? I.e. is the order of initialisation defined on all implementations one might reasonably care about?

fflexo avatar Feb 02 '17 19:02 fflexo