WIP: quantity polymorphism #44
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rhi/quox#44
Loading…
Reference in a new issue
No description provided.
Delete branch "qpoly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
new syntax
the existing
π.(x : A) → …
etc syntax only really works when π is a single token. and even then it took me a while to get used to it.function types
(x : A | π) → B
(A | π) → B
for nondependent. parens needed to disambiguate nested function typesboxes
[A | π]
for consistency with new function syntaxcase/let
case‹π›
orcase.{π}
, same forlet
; same as qty appcase0
etc still existqty polymorphic definitions:
def app‹π, ρ› : type = rhs
def app.{pi, rh}
for non-unicode versionf‹π, ρ›
orf.{pi, rh}
for application46889fefc8
toc5f2b2a2ce
c5f2b2a2ce
toef273e819e
ef273e819e
to4c008577b4
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.