Dynamic/static language
Posted by staufferjames on August 27, 2007 at 2:41 PM EDT
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);
System.out.println(temp.intValue());
- 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 automatic casting?
Related Topics >>
Blog Links >>
- Login or register to post comments
- Printer-friendly version
- staufferjames's blog
- 1106 reads





