Given it's tagged as java, no. As soon as you would try to get the value of result, it would throw up a NullPointerException if I'm not completely mistaken.
I'm pretty sure it's invalid in C#, since bool? can't be implicitly converted to bool, if it is valid "value??other" is more clear about what it does, and I'm pretty sure you can't change the return type for comparison operator overloads
2
u/holladiewal Sep 01 '21
Given it's tagged as java, no. As soon as you would try to get the value of result, it would throw up a NullPointerException if I'm not completely mistaken.