... | ... | @@ -33,8 +33,12 @@ Change the syntax for conditionals to |
|
|
|
|
|
|
|
|
i.e., add optional semicolons before `then` and `else`, making the above example legal.
|
|
|
This has been recently added to jhc and GHC, and
|
|
|
so far, it has not caused any problems.
|
|
|
This has been recently added to jhc, GHC and Hugs, and so far it has not caused any problems.
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
## References
|
|
|
|
... | ... | |