What if a Java allowed both static and dynamic types? That might allow the best of both worlds. i.e.:
String str = "Hello";
var temp = str;
temp = new Integer(10);
- Would that be possible?
- Would that be beneficial?
- For languages that support it, how is it used? When are static types used and when are dynamic types used? Are there patterns?
- Is this a similar proposal to