Skip to content

Objects as patterns #88

@lutzhamel

Description

@lutzhamel

The following program succeeds,

structure A with
  data a.
  data b.
end

let o = pattern with A(1,2).
let *o = A(1,2).

but this program fails,

structure A with
  data a.
  data b.
end

let o = A(1,2).
let *o = A(1,2).

That seems inconsistent if we view any kind of structure as a possible pattern.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions