Skip to content

Change Untyped from Null to Nothing for Trees #13883

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

Merged
merged 1 commit into from
Nov 5, 2021

Conversation

noti0na1
Copy link
Member

@noti0na1 noti0na1 commented Nov 5, 2021

Untyped = Nothing is a more logical choise for Trees, since an untyped tree should not have any value for its type.
This change will also make migration to explicit-nulls more easy (the type bound Untyped <:< Type becomes valid).

I don't notice any compiling error after I change the definition of Untyped type, so I guess the inference issue mentioned in the comment has been solved? @odersky

@bishabosha bishabosha marked this pull request as ready for review November 5, 2021 08:44
@noti0na1 noti0na1 requested a review from odersky November 5, 2021 15:30
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

I agree that Nothing is cleaner than Null. If everything still compiles we are good!

@odersky
Copy link
Contributor

odersky commented Nov 5, 2021

I restarted the stalled Windows test

@noti0na1
Copy link
Member Author

noti0na1 commented Nov 5, 2021

@odersky Is the CI test broken? It still says: "Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'self-hosted , Windows'
Waiting for a self-hosted runner to pickup this job..."

@odersky
Copy link
Contributor

odersky commented Nov 5, 2021 via email

@noti0na1 noti0na1 merged commit e7cbbd6 into scala:master Nov 5, 2021
@noti0na1 noti0na1 deleted the set-untyped-to-nothing branch November 5, 2021 18:45
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