Skip to content

[#124] revised Indigo operators

Pinto Pasquale requested to merge pasqu4le/#124-revised-operators into master

Description

Problem: some operators in Indigo are named in an odd way (usually with a .) to avoid conflicts with Haskell operators, additionally many of them operating on structures have been added organically and do not follow any convention, being confusing. Moreover, many of them do not have a prefix counterpart, which may be useful to have available.

Solution: rename operators, replacing the ones from Prelude in case of name clashing and based on a convention in case of structure-based. Additionally, add all necessary prefix counterpart using the names of Michelson instructions where one exists.

Note: tests have been split between Indigo code and tests-specific because (especially with the additional changes) there are too many naming conflicts.

Related issue(s)

Resolves #124 (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 Pinto Pasquale

Merge request reports