3 ms·
It causes big problems in Java. For example, it plays poorly with generics. (Especially if you start doing FP, lambdas.) If Java added union types, it wouldn'
by paulddraper 1y ago
It causes big problems in Java.
For example, it plays poorly with generics. (Especially if you start doing FP, lambdas.)
If Java added union types, it wouldn't be a big deal, but AFAIK this is still a limitation.