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

Move or_null back to beta #3625

Merged
merged 8 commits into from
Feb 26, 2025
Merged

Conversation

dkalinichenko-js
Copy link
Contributor

Title. Only add the or_null type when layouts are at least beta. Layouts like any_non_null or value_or_null are still available, since the bug only happens when working with Null values incorrectly considered impossible by the simplifier.

Copy link
Collaborator

@goldfirere goldfirere left a comment

Choose a reason for hiding this comment

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

I'm a little disturbed that this doesn't actually change the meaning of any extension in the compiler, but I think it's fine. Just saying this here to make sure you're thinking about this aspect too.

@goldfirere
Copy link
Collaborator

What about re-exports of or_null? Is that something to worry about?

@dkalinichenko-js
Copy link
Contributor Author

Yep, it's expected that it doesn't change the typechecking or the middle-end. You can't get a null value without using or_null.

@dkalinichenko-js
Copy link
Contributor Author

Exports won't work either since or_null is not added to the environment. I added a test for this.

@dkalinichenko-js dkalinichenko-js merged commit bff2e7d into main Feb 26, 2025
22 checks passed
@dkalinichenko-js dkalinichenko-js deleted the dkalinichenko/or-null-back-to-beta branch February 26, 2025 17:08
ccasin added a commit that referenced this pull request Feb 26, 2025
* `or_null` is beta

* fix existing or-null tests

* `or_null` is not stable

* format

* fix exports

* accept test_iarray_typeopt

* more tests

* beta universe instead of alpha

---------

Co-authored-by: Diana Kalinichenko <[email protected]>
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