3 ms·
I hear you, but the current state of affairs in Java (I know this isn't quite Java, but just for illustration) is more like: Dictionary<string, KeyValuePair<
by matt2000 7y ago
I hear you, but the current state of affairs in Java (I know this isn't quite Java, but just for illustration) is more like:
Dictionary<string, KeyValuePair<int, string>> contrivedExample = new Dictionary<>();
Which seems ok to me? And we don't enter the slippery slope of allowing variables without types, and hoping people just use it where appropriate.
- balfirevic 7y agoC# developer here, which has local variable type inference. It is appropriate in 95% of places. It hasn't caused an apocalypse yet. It has, in fact, been great!