Elm Exactly

Restrictioncore-operator-chain

Stated in Section 2.7 Infixed Operators.

If opj\opv_j and opl\opv_l (j<lj < l) of a chain have equal precedence and no operator of lower precedence stands between them, then either both associate to the left and the chain groups to the left, or both associate to the right and it groups to the right; otherwise the chain is not a phrase of the language.

Read it in its chapter·Permanent address: /standard/restrictions/core-operator-chain

Tests (5)

Discussions

Discuss this restriction·Search the discussions on GitHub

Discussions are on GitHub; one about this restriction has [res:core-operator-chain] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.