Closed Sophist-UK closed 7 years ago
@Sophist-UK I'm not sure if I am following. Aren't both the same thing?
Expression
expr1 ?: expr3
returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise.
Yes - they are the same thing - I was not aware of this style of ternary.
I guess my version is more readable, so I will not close this myself - feel free to merge or close as you see fit.
To be honest I am not sure how the unit tests passed with this bug.