fmease / lushui

The reference compiler of the Lushui programming language
Apache License 2.0
7 stars 0 forks source link

Permit attributes on parameters #83

Open fmease opened 3 years ago

fmease commented 3 years ago

Motivation

Examples:

data Person: Type of
    person
        ;; some documentation
        (name: Text)
        ;; some other documentation
        (age: Nat): Person
data Dummy
    @alpha @(beta) (A: Type)
    @gamma (@delta B: Type): Type of

Specification

Parameter attributes are stored inside of pi type literals.

Unresolved questions