3 ms·
And "X && Y || Z" is usually equivalent to "X ? Y : Z". So "nullableVariable != null ? nullableVariable.someMethodCall() : fallbackIfNullMethodCall();".
by thomasahle 7y ago
And "X && Y || Z" is usually equivalent to "X ? Y : Z".
So "nullableVariable != null ? nullableVariable.someMethodCall() : fallbackIfNullMethodCall();".
- twiceaday 7y agoIf X is true and Y is false this returns Y instead of Z which is wrong.