Commit 2023-07-27 17:38 66659071
View on Github →feat: says tactic combinator (#5980)
This is a primitive implementation of the says combinator discussed at today's porting meeting.
If you write X says, where X is a tactic that produces a "Try this: Y" message, then you will get a message "Try this: X says Y". Once you've clicked to replace X says with X says Y, after then X says Y will only run Y.
I think this is already potentially useful.
Possible additions:
- a CI mode that re-verifies that
Xreally does still sayY. (Edit: DONE) - If
Xdoesn't say anything, perhaps implicitly wrap it withshow_term? - Add an extra
suggestflag to theTacticMstate, so we can instruct tactics to print "Try this:" suggestions without adding?directly. Very happy if anyone wants to hack on this / replace with a better implementation, etc.