Closed farfromrefug closed 4 years ago
The || operator is designed to return boolean, as in C/C++. I know there are languages that support something like this (Python, for example). But most C-based languages do not. A better proposal would be be to add something like ?? operator in C# in addition to ||. Currently closing this and marking 'wont fix'.
oh ok! got it ;)
It is said in the doc that the operator
||
is working However if i try to do thatit does not seem to work. Would be very practical as easier to read than using
?: