Skip to content

Alias expression #28

@Specy

Description

@Specy

create syntax for aliases, something like

min $cost
s.t.
    alias $cost = ...

    $cost >= 200

Where the aliases are the first thing scanned and they will be replaced at build time by simply replacing the expression inside of the alias (this might cause issues with the type checker though, the return value of the alias must be the same as the return value of the expression, at that point we can typecheck the aliases before checking the constraints and objective function)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions