Add a separate pass to check for missing bindings #62

Open
opened 2024-02-19 13:30:12 +01:00 by samvv · 0 comments
samvv commented 2024-02-19 13:30:12 +01:00 (Migrated from github.com)

Due to issue #47, we need a way to report all unbound identifiers and not just the first one.

One way to solve this would be to never let the type checker inject bindings when it finds that one is missing, but then we also cannot unify the different missing names with each other through a type variable.

The solution left is to create a pass that reports all missing bindings by traversing the AST.

Due to issue #47, we need a way to report _all_ unbound identifiers and not just the first one. One way to solve this would be to never let the type checker inject bindings when it finds that one is missing, but then we also cannot unify the different missing names with each other through a type variable. The solution left is to create a pass that reports all missing bindings by traversing the AST.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: samvv/bolt#62
No description provided.