You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@adriaanm said:
We plan to address this issue in future versions of Scala by introducing union types, so that the approximation of the least upper bound you see here could be denoted directly (and precisely) as java.lang.Double or java.lang.Long.
The current Scala compiler must approximate this type by expanding it, and truncating when it's gone two levels deep (to avoid even longer types -- in principle, the expansion is infinite).
First, we need to work out the nitty gritty details of the theory, though.
This seems needlessly baroque, not that I have any concrete suggestions for how it might be improved.
The text was updated successfully, but these errors were encountered: