Skip to content

"Raise" action that preserves existing expression and type #1345

@dhess

Description

@dhess

When we "raise" a well typed node, we lose information; i.e., we may delete one or more subtrees in the raised node, leading to a partial loss of the student's program state.

We should either modify the current raise action, or add a new action, such that the action:

  1. Preserves the node's current known type.
  2. Replaces the node with a hole/mismatch.
  3. Inserts the original node into the hole/mismatch, annotated by the preserved type from step 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIUXUX issuepriority: highThis issue has high priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions