how do you plan to integrate nullables? is there s...
# arrow
p
how do you plan to integrate nullables? is there some open discussion thread to have an idea of how it will look like?
🤩 1
r
We can synthetically project the Option wrapper when in polymorphic position wrapping the nullable value to allow Option as a target in ad hoc polymorphism and then extract the value again
so
A?
inherits automatically all the API of
Option<A>
Essentially I can tell the typechecker
Option<A>
is the same type and a subtype of
A?
p
therefore the
Option<A>
type will still need to exist, right?
r
so they are implicitly converted
yed but it won’t be visible or importable
p
hidden by the meta layer?
r
it’s synthetic
yes
or public if you enable it on a setting
whatever you want to
p
nice to hear, thanks, good luck with it!
👍