Skip to content

Lambda signatures #5

Description

@trans

Might want to add support for lambda signatures, e.g.

sig ->{ |x| x > 1 }
def f(x)
  x > 1  # always true
end

However, this might not be strictly necessary since pseudo-types could be used (or at least should be able to be used).

type :Gt1 do
  x > 1
end

sig Gt1
def f(x)
  x > 1  # always true
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions