docs/v2.md
[1 ..] syntaxDue to a bug in the parser we accept [1, ..] as a valid list value.
_ as a syntaxThis pattern doesn't make sense as one could write a instead. We don't want
two ways of doing the same thing.
Do not allow shadowing an imported value, the same way one can't define two top level functions with the same name.
Do not allow one module to be imported multiple times. This is currently accepted so long as each import uses a different alias.
fn propertyOn JavaScript there is a deprecated fn property. This was a mistake, it
should have been function. It still exists today due to backwards
compatibility.
It doesn't make sense to have an if guard followed by no condition, but the
compiler allows this: case wibble { big if -> True }
In Gleam v1, the syntax a |> b(c) is ambiguous; it can either mean b(a, c)
or b(a)(c). This makes code harder to reason about as it means that you cannot
determine the meaning of pipe expressions without knowing the type of the called
function.
In Gleam v2, we want to remove the second option, so a |> b(c) always desugars
to b(a, c), regardless of the types.