Changes between Version 11 and Version 12 of DoAndIfThenElse
- Timestamp:
- 02/20/07 04:13:14 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DoAndIfThenElse
v11 v12 20 20 Strictly speaking, the issue is not tied to the `do`-notation, but that is where it (almost?) always shows up. 21 21 22 Jon Fairbairn suggests that `case` should get the same treatment, for consistency:23 {{{24 do case whatever25 of26 blah -> bluh27 blah' -> bluh'28 }}}29 or perhaps30 {{{31 do case whatever of32 Cons -> bluh33 Nil -> foo34 }}}35 36 22 == Proposal == 37 23 … … 44 30 45 31 The second optional semicolon is the important one. 46 The first one just adds a little more convenience; 47 it has been suggested that it would be consistent to do the same before `of` in `case` expressions. 32 The first one just adds a little more convenience. 48 33 49 '''Possible addition''': optional semicolon before/(after?) `of` in `case` expressions too. 34 '''Possible addition''': Jon Fairbairn suggests that if an optional semicolon is added before `then`, it would be consistent to also add one before `of` in `case` expressions, allowing: 35 {{{ 36 do case whatever 37 of 38 blah -> bluh 39 blah' -> bluh' 40 }}} 50 41 51 42 == References ==
