Skip to content

[#138] Reduce the usage `$` in Indigo

Moremi Vannak requested to merge rinn7e/#138-reduce-usage-$ into master

Description

Problem: Indigo code often contains the $ Haskell operator, however since the language is meant to be used by people not familiar with Haskell it would be great to not make it a necessity.

Solution: Reduce usage of $ in 2 places:

  1. right before do is used for a block code
  • Solved by using BlockArguments
  1. right after new
  • Solved by treating new$ as one keyword

Related issue(s)

Resolves #138 (closed)

Depends on #169 (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 Moremi Vannak

Merge request reports