Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "modern" Definition syntax extensible #1316

Open
dnezam opened this issue Oct 4, 2024 · 0 comments
Open

Make "modern" Definition syntax extensible #1316

dnezam opened this issue Oct 4, 2024 · 0 comments

Comments

@dnezam
Copy link
Contributor

dnezam commented Oct 4, 2024

Currently, the attributes for the "modern" Definition syntax seem to be fixed. This means that in some cases one has to fall back on using the "old" style Define. For example,

val _ = PmatchHeuristics.with_classic_heuristic Define `foo = ...`;

could be more nicely written if one could register PmatchHeuristics.with_classic_heuristic as an attribute, resulting in something like

Definition foo_def[with_classic_heuristic]:
  foo = ...
End

(courtesy of @mn200 on Discord)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant