Changes between Initial Version and Version 1 of TypeInference
- Timestamp:
- 07/23/09 19:45:18 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TypeInference
v1 v1 1 Although you can explicitly declare the type of a local variable, you don't have to: 2 {{{ 3 # the long way: 4 i as int = 0 5 6 # the short, easy way: 7 i = 0 8 }}} 9 The type of the variable on the left is taken to be the type of the expression on the right.