... | ... | @@ -23,6 +23,16 @@ put beginners off. |
|
|
|
|
|
Strictly speaking, the issue is not tied to the `do`-notation, but that is where it (almost?) always shows up.
|
|
|
|
|
|
|
|
|
Jon Fairbairn suggests that `case` should get the same treatment, for consistency:
|
|
|
|
|
|
```wiki
|
|
|
case whatever
|
|
|
of
|
|
|
blah -> bluh
|
|
|
blah' -> bluh'
|
|
|
```
|
|
|
|
|
|
## Proposal
|
|
|
|
|
|
|
... | ... | @@ -40,6 +50,9 @@ The second optional semicolon is the important one. |
|
|
The first one just adds a little more convenience;
|
|
|
it has been suggested that it would be consistent to do the same before `of` in `case` expressions.
|
|
|
|
|
|
|
|
|
Possible addition: optional semicolon before `of` in `case` expressions too.
|
|
|
|
|
|
## References
|
|
|
|
|
|
- [ Conditionals](http://www.haskell.org/onlinereport/exps.html#conditionals) in the Haskell 98 Report
|
... | ... | |