Skip to content

Commit 64b1525

Browse files
giacomocavalierilpil
authored andcommitted
add big if -> True to syntax to remove in v2
1 parent 5175a40 commit 64b1525

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/v2.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ Due to a bug in the parser we accept `[1, ..]` as a valid list value.
1212
This pattern doesn't make sense as one could write `a` instead. We don't want
1313
two ways of doing the same thing.
1414

15-
- [X] Emits warning when used.
16-
- [X] Formatter rewrites it to desired syntax.
15+
- [x] Emits warning when used.
16+
- [x] Formatter rewrites it to desired syntax.
1717

1818
## Shadowing imported values
1919

2020
Do not allow shadowing an imported value, the same way one can't define two
2121
top level functions with the same name.
2222

23-
- [ ] Emits warning when used.
23+
- [x] Emits warning when used.
2424

2525
## Import one module multiple times
2626

27-
Do not one module to be imported multiple times. This is currently accepted so
28-
long as each import uses a different alias.
27+
Do not allow one module to be imported multiple times. This is currently
28+
accepted so long as each import uses a different alias.
2929

3030
- [x] Emits warning when used.
3131

@@ -34,3 +34,11 @@ long as each import uses a different alias.
3434
On JavaScript there is a deprecated `fn` property. This was a mistake, it
3535
should have been `function`. It still exists today due to backwards
3636
compatibility.
37+
38+
## Do not allow guard with no condition
39+
40+
It doesn't make sense to have an `if` guard followed by no condition, but the
41+
compiler allows this: `case wibble { big if -> True }`
42+
43+
- [ ] Emits warning when used.
44+
- [x] Formatter rewrites it to desired syntax.

0 commit comments

Comments
 (0)