Source/Packages

Compiler.LanguageEdition

packages/compiler/src/Compiler/LanguageEdition.alpha

112 lines16 declarations4.2 KiBSHA-256 75b20ed8bf85

def · lines 95–102

editionAllowsReadableMatching

Full file
Readable match/match-with syntax is introduced by alpha-2027 and lowers to the existing exhaustive eliminator core.
95def editionAllowsReadableMatching =
96  (lambda unrestricted edition : (family LanguageEdition) .
97    (eliminate
98      LanguageEdition
99      (lambda unrestricted current : (family LanguageEdition) . Nat)
100      edition
101      (branch Alpha2026 . zero)
102      (branch Alpha2027 . (succ zero))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.