this repo has no description
at wasm 44 lines 1.2 kB view raw view rendered
1# Breaking changes to make for v2 2 3## `[1 ..]` syntax 4 5Due to a bug in the parser we accept `[1, ..]` as a valid list value. 6 7- [x] Emits warning when used. 8- [x] Formatter rewrites it to desired syntax. 9 10## `_ as a` syntax 11 12This pattern doesn't make sense as one could write `a` instead. We don't want 13two ways of doing the same thing. 14 15- [x] Emits warning when used. 16- [x] Formatter rewrites it to desired syntax. 17 18## Shadowing imported values 19 20Do not allow shadowing an imported value, the same way one can't define two 21top level functions with the same name. 22 23- [x] Emits warning when used. 24 25## Import one module multiple times 26 27Do not allow one module to be imported multiple times. This is currently 28accepted so long as each import uses a different alias. 29 30- [x] Emits warning when used. 31 32## JavaScript runtime error `fn` property 33 34On JavaScript there is a deprecated `fn` property. This was a mistake, it 35should have been `function`. It still exists today due to backwards 36compatibility. 37 38## Do not allow guard with no condition 39 40It doesn't make sense to have an `if` guard followed by no condition, but the 41compiler allows this: `case wibble { big if -> True }` 42 43- [x] Emits warning when used. 44- [x] Formatter rewrites it to desired syntax.