|
|
|
|
|
by kentosi
3335 days ago
|
|
The examples you've given have direct values. Try: var index = getIndexFromSomewhere();
var name = getHandleFromUser("peter", "waivers")
The type isn't as clear anymore.*Edit: I'm absolutely a fan of the var syntax, having dabbled with scala. I'm just expressing what I think the original author's complaint is. |
|
But the issue you have glossed over is that sometimes there is no nominal type - there is only an anonymous type, as for example returned by a LINQ query using new{}, or via monad-style combinators where you really don't want to see the type for fear of your eyes bleeding.