Set Debug Foo vs Set Foo Debug #114
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a request for comment. I often stumble on trying Set Debug Typeclasses or Set Debug Ltac while the official syntaxes are "Set Typeclasses Debug" and "Set Ltac Debug". That Debug comes second for Typeclasses is legitimate from the point of view of Typeclasses since we already have:
Set Typeclasses Unique Solutions.
Set Typeclasses Modulo Eta.
Set Typeclasses Dependency Order.
Set Typeclasses Iterative Deepening.
Set Typeclasses Depth.
Set Typeclasses Strict Resolution.
Set Typeclasses Unique Instances.
However, this contradicts the point of view of Debug options where Debug comes first as in:
Set Debug Unification.
Set Debug Tactic Unification.
Set Debug RAKAM.
So my questions are somehow: should we obey to the principle that we should avoid providing redundant syntaxes, or should we consider that convenience is an as important requirement. Alternatively, should we arbitrate between the Typeclasses point of view and the Debug point of view and have only syntax, or should we accept that both points of view are valid and have the two syntaxes coexisting.
Regarding Set Ltac Debug, the situation is different. Historically, we had Ltac Debug. By care for uniformity, I introduced Set Ltac Debug which is now the official, documented, syntax even if Ltac Debug is still supported by an ad hoc entry of the parser. Following the Debug view, we could also accept Set Debug Ltac. But then we should morally document both since, one makes sense from a Debug-centric POV, while the second makes sense from an Ltac-centric POV.