reason icon indicating copy to clipboard operation
reason copied to clipboard

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

Open dc-mak opened this issue 6 years ago • 1 comments

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 :-)

dc-mak avatar Mar 16 '18 11:03 dc-mak

I would love to see this kind of feature. For inspiration, definitely check out https://hazel.org/, which contributes the idea that there can be a well-defined semantic for incomplete programs both at type checking (inferring the type of the hole), and at runtime (i.e incomplete programs can still run! But they give incomplete results).

d4hines avatar Feb 25 '21 18:02 d4hines