Skip to content

Conversation

@dolio
Copy link
Contributor

@dolio dolio commented Dec 18, 2025

This PR should give more comprehensible errors in the case of a dataBranch problem. Instead of just printing the closure, it does some case analysis to just explain what sort of closure it was. Also, I've switched to using short printing of Reference values.

It has cases for when you have a data type case that isn't covered by the branches, but I'm not sure the interpreter can ever actually get there, because default cases are inserted by the compiler.

@dolio dolio requested review from aryairani and pchiusano December 18, 2025 21:14
@aryairani
Copy link
Contributor

Thanks for the quick turnaround

@aryairani aryairani merged commit ea4a1f7 into trunk Dec 21, 2025
57 of 59 checks passed
@aryairani aryairani deleted the topic/dataBranch-errors branch December 21, 2025 03:29
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.

3 participants