4 ms·
var obj = new SomeType(); obj = GetSomeType(); You could almost be tempted to write an automatic converter to var obj = GetSomeType(); but you can't in
by eru 15y ago
var obj = new SomeType();
obj = GetSomeType();
You could almost be tempted to write an automatic converter to
var obj = GetSomeType();
but you can't in general, because you don't know whether `new SomeType()' doesn't have side-effects. But if it has some that are relied on, that's probably a bug.
I know that there's a free .net runtime called Mono. What about the compiler side of free C#?