3 ms·
How is it harmful to say: var foo = new Foo(); as opposed to: Foo foo = new Foo(); ? As for "killing the static type safety we cherish so much", that's a o
by kartickv 10y ago
How is it harmful to say:
var foo = new Foo();
as opposed to:
Foo foo = new Foo();
?
As for "killing the static type safety we cherish so much", that's a one-sided view. There are situations when dynamic typing works better, say when working with JSON, and in any case, static typing has many problems: https://kartick-log.blogspot.in/2016/05/statically-typed-languages-need-better.html https://kartick-log.blogspot.in/2016/05/statically-typed-lan...