-
Notifications
You must be signed in to change notification settings - Fork 74
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
Number unification docs #1200
Conversation
d205bcd
to
494b1bd
Compare
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`. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Fixes #1167
Updates KoDEx to 0.4.3 to fix iFrame rendering (see #1201).
Needs to be merged after #1201