reason
reason copied to clipboard
Typed holes `(??)` like Merlin with OCaml
It does work, but two issues:
-
[Error] Unbound value ??
- maybe use a different message (e.g.Warning/Error: Unimplemented hole
) -
refmt
incorrectly formats it like this
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 :-)
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).