Skip to content

[#173] Generalize structure-manipulation indigo expressions

Anton Myasnikov requested to merge awkure/#173-generic-update-in-indigo into master

Description

Instead of having the current structure-specific operator/expression and Expr constructor, we now have:

  • one generic Expr constructor that compiles to Lorentz's update
  • one generic "updating" operator that simply uses that constructor
  • one generic "inserting" operator based on that constructor (or even better on the previous operator)
  • one generic "deletion" operator too, like the one above
  • one generic "empty" instruction
  • one generic "lookup" instruction

Related issue(s)

Resolves #173 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Anton Myasnikov

Merge request reports