|
|
|
## Array Indexing
|
|
|
|
|
|
|
|
|
|
|
|
Array indexing currently uses the `!` infix operator. However, `!` is also used by the [BangPatterns](bang-patterns) proposal, which leads to some interesting parsing issues if you try to combine the two (parterns are usually parsed as expressions in Haskell due to ambiguities).
|
|
|
|
Array indexing currently uses the `!` infix operator. However, `!` is also used by the [BangPatterns](bang-patterns) proposal, which leads to some interesting parsing issues if you try to combine the two (patterns are usually parsed as expressions in Haskell due to ambiguities).
|
|
|
|
|
|
|
|
|
|
|
|
Furthermore, it seems more consistent to reserve `!` to mean "strict", which it does in other contexts: constructor field declarations, the `$!` operator, and [BangPatterns](bang-patterns). Later we might want to introduce `!` as a general type operator.
|
| ... | ... | |