In my own code and in numerous mailing lists, I noticed confusion over the fact that Nothing was not inferred as the upper bound of two other types.
The answer may be obvious to you *, but I'm lazy, so I ask you:
Under what conditions can Nothing be the most desired result?
Would it be reasonable for the compiler to give an error in these cases, or a warning if it is not overridden by some kind of annotation?
* Multiple
scala type-inference nothing
Alex cruise
source share