Open ohad opened 3 years ago
In response to a question on Discord, the reason this is desirable is that it makes it easy to edit the code.
Unlike :doc
, which is useful for learning about a thing while using the thing, "jump to X" is useful for modifying things, or otherwise working and reasoning about the source code underlying that thing. In this case "X" could be a definition, a type declaration, or a fixity declaration.
@gwerbin That's definitely a valid use-case, but the issue needs a lot more details in order to be actionable:
There is definitely something to do here but we need to scope the problem a little bit better first. All those could be their own proposals in themselves!
Summary
Motivation
In Idris2 fixity declarations are separate from the function declaration and are more-or-less global. It's helpful for the programmer to be able to tell which fixity declaration is in effect.
The proposal
Examples
TBC
Technical implementation
TBC
Alternatives considered
Agda doesn't support overloading.
The other functional languages in this area don't really have an IDE protocol.
If someone is familiar with other language protocols, that would be helpful.
Conclusion
Not a ground-breaking feature, but might be an easy entry / good-first-issue into the IDE protocol.