Skip to content

Sugar for linear arrows #556

@Lysxia

Description

@Lysxia

Linearity seems ubiquitous enough that it would be useful to have special syntax for it.

A #-> B
-- as sugar for
(1 _ : A) -> B

In particular that allows you to easily make an existing module use linear types by search-replace; in vim: :s/->/#->/gc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions