Feature: Ltac2 antiquotation shorthand for constr-producing expressions instead of only variables #17456
Labels
kind: wish
Feature or enhancement requests.
part: ltac2
Issues and PRs related to the (in development) Ltac2 tactic langauge.
The Ltac2 manual says:
But why does
x
have to be a variable? I would find it useful ifx
could be any (parenthesized) Ltac2 expression of typeconstr
, especially for cases where the surrounding Coq term is quite big, and the Ltac2 expression to be antiquoted is so small that creating a let-bindings far out for it makes code harder to read.A potential reason for not implementing this would be to avoid having to make any decisions on the evaluation order, but it turns out that it has already been decided that the evaluation order is unspecified, according to the manual:
So, in the already supported
constr:(some gallina code ltac2:(my first expr of type unit) more gallina ltac2:(my second expr of type unit))
I already don't know which of the Ltac2 expression is going to be evaluated first (which is fine for me), so it's not a problem if it's also unspecified in the proposed syntax
The text was updated successfully, but these errors were encountered: