Skip to content

Fixing usability of nested lattice types in the #[derive(Lattice)] macro #1263

@MingweiSamuel

Description

@MingweiSamuel

Rohit ran into this - want to use the #[derive(Lattice)] macro, but then you can't use the inner fields for a LatticeBimorphism

Possible fixes:

  1. Allow mapping of state references - something we have thought about for a long time. If we could do something like state() -> map(|x| &x.system) to map the state reference (not the items) and use that reference in the lattice bimorphism, that work work.
  2. Allow some sort of #[derive(LatticeBimorphism)] macro in the same was as deriving Lattice. But kinda clunky, have to align fields.

Metadata

Metadata

Assignees

Labels

dfir_lang syntaxDataflow IR syntax (surface syntax)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions