Skip to content

Number unification docs #1200

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 7 commits into from
May 20, 2025
Merged

Number unification docs #1200

merged 7 commits into from
May 20, 2025

Conversation

Jolanrensen
Copy link
Collaborator

@Jolanrensen Jolanrensen commented May 19, 2025

Fixes #1167

Updates KoDEx to 0.4.3 to fix iFrame rendering (see #1201).

Needs to be merged after #1201

@Jolanrensen Jolanrensen added this to the 1.0.0-Beta3 milestone May 19, 2025
@Jolanrensen Jolanrensen added the documentation Improvements or additions to documentation (not KDocs) label May 19, 2025
@Jolanrensen Jolanrensen force-pushed the unify-numbers-docs branch from d205bcd to 494b1bd Compare May 19, 2025 14:56
Nullability, while not displayed everywhere in the graph, is also taken into account.
This means that `Int?` and `Float` will be unified to `Double?`.

At the bottom of the graph is `Nothing?`. This can be interpreted as `null`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nothing? represents type of the null value and is the starting point in unification.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not exactly the starting point. Nothing is the starting point, Nothing? is Nothing and null, but numbers can also be non-null of course

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually, that means I should probably change the graph

@Jolanrensen Jolanrensen merged commit a567efc into master May 20, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation (not KDocs)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs needed for unified numbers
2 participants