Implicit typing; why just local variables?
Posted
by edg
on Stack Overflow
See other posts from Stack Overflow
or by edg
Published on 2009-05-05T12:59:14Z
Indexed on
2010/05/05
11:58 UTC
Read the original article
Hit count: 264
Does anyone know or care to speculate why implicit typing is limited to local variables?
var thingy = new Foo();
But why not...
var getFoo() {
return new Foo();
}
© Stack Overflow or respective owner