Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Factory refinement types #17

@jonhue

Description

@jonhue

Allow refinement types to act as factory and be instantiated in different circumstances with varying parameters.

# define as
type GreaterThan<a>(x :: a) := [y ~ a | y > x]

# use as
GreaterThan<Number>(5)

Can only be instantiated with literals.

Also allow instantiated parametric types on the right hand side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalNew proposal for the language spec

    Type

    No type

    Projects

    Status

    In Progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions