Changes between Version 1 and Version 2 of Language/Overview/ClosureTyping
- Timestamp:
- 08/26/10 02:13:01 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Language/Overview/ClosureTyping
v1 v2 24 24 }}} 25 25 26 In `twoSeparateInts` there are different regions annotation on each of the `Int` constructors, which meansthey do not alias. This in turn means that it is safe to treat one as `Const` and the other as `Mutable`.26 In the type of `twoSeparateInts`, the different regions variables on each of the `Int` constructors means that they do not alias. This in turn means that it is safe to treat one as `Const` and the other as `Mutable`. 27 27 28 28 But what happens if we partially apply `f`? The standard type system will re-generalize the type for the new binding and we're left with:
