3 ms·
when declare and init an obj with constructor, yes it's annoying to type the type twice and I def. use `var` But what if you're doing something like var x
by tuananh 13y ago
when declare and init an obj with constructor, yes it's annoying to type the type twice and I def. use `var`
But what if you're doing something like
var x = myOtherObjectName.y;
readability is destroyed in this case.