Skip to content

Conversation

@ygrx532
Copy link

@ygrx532 ygrx532 commented Nov 4, 2025

Equality is now represented as a distinct case that delegates evaluation to Lambda's .eq primitive when possible.

Equality Handling Improvements

  • Added a new deferredEq constructor to the HExpr type to represent deferred equality expressions that can delegate to Lambda's .eq primitive.
  • Updated the evalHExpr function to handle deferredEq by evaluating both sides and delegating to Lambda's .eq evaluator if possible, otherwise keeping the expression deferred.

@ygrx532 ygrx532 requested review from a team, atomb and shigoel as code owners November 4, 2025 19:35
| "===" => Heap.HExpr.app (Heap.HExpr.app (Heap.HExpr.deferredOp "Int.Eq" none) lhs) rhs
| "==" => Heap.HExpr.app (Heap.HExpr.app (Heap.HExpr.deferredOp "Int.Eq" none) lhs) rhs
-- Use deferredEq which delegates to Lambda's .eq at evaluation time
| "===" => Heap.HExpr.deferredEq lhs rhs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect this should be .eq

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

Successfully merging this pull request may close these issues.

2 participants