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

multi-holes do not evaluate #1497

Open
cyrus- opened this issue Feb 5, 2025 · 1 comment
Open

multi-holes do not evaluate #1497

cyrus- opened this issue Feb 5, 2025 · 1 comment
Labels

Comments

@cyrus-
Copy link
Member

cyrus- commented Feb 5, 2025

Image

@cyrus- cyrus- added the bug label Feb 5, 2025
@cyrus- cyrus- moved this to Team Dynamics in Hazel Big Board Feb 5, 2025
@disconcision
Copy link
Member

@cyrus- A solution to this would involve firming up some decisions about the semantics of incomplete programs. First issue is that multiholes in the current implementation reflect two different kinds of error (technically three but i'm going to ignore backpack issues that will not be present in the new tylr). Singleton multiholes represent sort errors, whereas 2+ multiholes represent missing infix operations. This second case is impacted by sort issues though, as there are infix operator (currently only ann/ascr) which take different-sorted children.

It's likely a reasonable default to say, for multiholes in expressions at least, to treat the contents as expressions (if it is possible to parse them as expressions), and assign them the semantics of either tuples or semicolons or reverse semicolons as per the slack discussion, with the former being the conservative option. However, this might require some coordination with the syntax side, which currently uses some slightly ad-hoc logic for multihole component sort assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Team Dynamics
Development

No branches or pull requests

2 participants