... | @@ -31,6 +31,17 @@ put beginners off. |
... | @@ -31,6 +31,17 @@ put beginners off. |
|
Strictly speaking, the issue is not tied to the `do`-notation, but that is where it (almost?) always shows up.
|
|
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
|
|
## Proposal
|
|
|
|
|
|
|
|
|
... | @@ -55,6 +66,10 @@ The first one just adds a little more convenience; |
... | @@ -55,6 +66,10 @@ 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.
|
|
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
|
|
## References
|
|
|
|
|
|
|
|
|
... | | ... | |