reasonml / reasonml/reason

Typed holes `(??)` like Merlin with OCaml

Open
#1,868 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Editor support KIND: FEATURE REQUEST Parser
Dominant language
OCaml
Stars
10.3k
Forks
438
PR merge metrics
No merged PRs in 30d

Description

It does work, but two issues:

image

  1. [Error] Unbound value ?? - maybe use a different message (e.g. Warning/Error: Unimplemented hole)
  2. refmt incorrectly formats it like this

image

Typed-holes are ridiculously useful for statically-typed programming (Agda, Idris) - would be great to shine some light on this feature - instead of/as well as gradually buildng types, we can gradually build terms :-)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the typed-hole behavior described in the issue, then inspect the error reporting path and refmt's formatting of (??). Done means providing a clearer unimplemented-hole diagnostic and ensuring refmt preserves the intended typed-hole syntax, with tests covering both behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
ocaml
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.