Changes between Version 4 and Version 5 of MultiWayIf
- Timestamp:
- 12/05/05 08:34:42 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultiWayIf
v4 v5 43 43 }}} 44 44 Note the change in the equals sign, from one per guard to one per clause. Case-style alternatives use -> instead of =. However, this removal would break old programs. 45 46 '''Bogosity alert.''' The above observation is incorrect. If all the definition-level guards are false, pattern-matching will fall through to the next clause or case-pattern. But in the expression-level guards, this is not the case. Intuitively, once you "cross the equals sign" from lhs to rhs of a definition, you are committed to that equation and cannot back-track.
